DIP4: Properties

BLS windevguy at hotmail.de
Sat Jul 25 03:32:11 PDT 2009


Nick Sabalausky wrote:
>  An alternate usage/definition syntax for properties.
> 
> http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP4
> 
> Note that there are a few parts marked NEED HELP, that could use assistance 
> from someone with more expertise in this than me.
> 
> 

A one liner should do the trick too.
[public] [const] property int i;

public -> delphi published
const -> readonly / getter

the compiler can generate getter and setter code.



More information about the Digitalmars-d mailing list