hiding a class property behind a method

Francesco Cattoglio francesco.cattoglio at gmail.com
Sat Feb 22 14:33:39 PST 2014


On Saturday, 22 February 2014 at 17:21:50 UTC, luka8088 wrote:
> It seems to me that the following code should be illegal, but I 
> am
> uncertain of it so I am posting here for a confirmation before 
> I post it
> on bug tracker:
[snip]

Nice find. I guess we could add this to the list of "ugly code 
caused by calling functions without parenthesis. If parenthesis 
were not optional, I don't think that the code would behave in 
such a horrible way, right?


More information about the Digitalmars-d-learn mailing list