DIP4: Properties
BLS
windevguy at hotmail.de
Sat Jul 25 04:11:05 PDT 2009
BLS wrote:
> 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.
[public] [const|immutable] property int i;
More information about the Digitalmars-d
mailing list