YAPP - yet another properties poll

Robert Fraser fraserofthenight at gmail.com
Fri Jul 31 17:07:28 PDT 2009


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.



More information about the Digitalmars-d mailing list