YAPP - yet another properties poll

aarti_pl aarti at interia.pl
Fri Jul 31 23:14:11 PDT 2009


Robert Fraser pisze:
> aarti_pl wrote:
>> Please add another syntax proposals (max. 2 best proposals - with 
>> example code) and correct mistakes in questions (if any):
> 
> I like the C# style:
> 
> int size
> {
>     get { return _size; }
>     set { _size = value; }
> }
> 
> get, set and value are only "keywords" within a property block, if you 
> use them elsewhere, they're just regular identifiers.

Great! I will add this syntax to the poll.

BR
Marcin Kuszczak
(aarti_pl)



More information about the Digitalmars-d mailing list