properties - Why not the set/get syntax?

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Apr 1 17:31:13 PST 2006


"Cris" <central_p at hotmail.com> wrote in message 
news:e0lg9c$27q4$1 at digitaldaemon.com...
> Why the properties in D do not use the set/get syntax? It looks more clear 
> and natural to me.

I agree.  With an explicit property syntax, more information could be given 
to the compiler as well, enabling things like

obj.prop += 5;

Which is currently not possible. 





More information about the Digitalmars-d mailing list