On 03/30/2012 01:45 AM, bearophile wrote:
Timon Gehr:

I think the article does not mention that it also works for primitive types.

But there is a small problem with primitive properties:
http://d.puremagic.com/issues/show_bug.cgi?id=7773

Bye,
bearophile

Yes, I have never understood why built-in types are excluded from expressions other than '.' expressions during parsing. After all, semantic analysis must deal with them because they can occur through aliases. It seems inconsistent and causes strange behaviour that is hard to remember. (The fact that primitive types cannot be passed as alias parameters smells in a similar way.)

Reply via email to