Possible @property compromise

Zach the Mystic reachBUTMINUSTHISzach at gOOGLYmail.com
Sat Feb 2 10:06:34 PST 2013


On Saturday, 2 February 2013 at 17:33:38 UTC, TommiT wrote:
>> I was simply using A.B.C.myMemberFunction as a shorthand for 
>> whatever name the compiler uses underneath the hood to 
>> represent the non-static version of the function.
>
> Yes, I can see that now. I didn't understand that the code 
> wasn't actual code but something that the compiler sees.
>
> But, you didn't answer my question. What would happen if I 
> actually did write that code and click "compile". What would 
> there be in the 'i' variable?
>
> Era Scarecrow already answered the question for you. The 
> correct answer is that the code wouldn't compile. But I just 
> want to see that you understand why it must be so.

I'm sure I'll get by, with a little help from my friends.


More information about the Digitalmars-d mailing list