x.sizeof vs typeid(x)
bearophile
bearophileHUGS at lycos.com
Wed Feb 6 12:57:28 PST 2008
Matti Niemenmaa:
> You would have to change all uses of distance, whether inside or outside the
> class, to be distance() instead of distance.
>
> Except that D does give us the ability to always use just distance and not care
> about whether it's a function or not.
I was talking about free functions. I think for methods/properties the syntax without () can be kept...
Bye,
bearophile
More information about the Digitalmars-d
mailing list