@property - take it behind the woodshed and shoot it?

Walter Bright newshound2 at digitalmars.com
Fri Jan 25 21:38:44 PST 2013


On 1/25/2013 2:14 PM, Jonathan M Davis wrote:
> A property function is fundamentally different from a
> normal function by its very nature, not just by its call syntax.

I would have agreed with you on that for years, simply taking its veracity as an 
axiom, but lately I am not convinced at all of that assertion. I suspect the 
differences between a property, field, and method are purely contrivance.

For example, even accessing a global variable isn't straightforward, if you look 
under the hood. If it's in a DLL or TLS, there may be a function call in there 
that is non-trivial.



More information about the Digitalmars-d mailing list