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;

Reply via email to