Fixing D's Properties
BCS
ao at pathlink.com
Sat Aug 18 13:23:25 PDT 2007
Reply to Jason,
> BCS wrote:
>
>> I see your point and I strongly disagree. Under the covers, it IS a
>> function and I /don't/ want that hidden.
>>
> By the very virtue that D makes the syntax identical, it _is_ trying
> to hide that fact. Either properties must try to act like members or
> the usage of properties should not mirror members.
>
Good point. To some extent it does. However, that just doesn't feel the same
as Chad's suggestion. I'm not sure exactly why, but I thing it has something
to do with the fact that currently D only hides the function'ness syntactically,
but the proposal does so semantically.
More information about the Digitalmars-d
mailing list