August 18, 2007 Re: Fixing D's Properties | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jason House | 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.
|
Copyright © 1999-2021 by the D Language Foundation