enum scope

Jonathan M Davis jmdavisProg at gmx.com
Sat Jan 28 14:14:46 PST 2012


On Saturday, January 28, 2012 23:10:01 Andrej Mitrovic wrote:
> On 1/28/12, Trass3r <un at known.com> wrote:
> >> No it's not. Your sample won't compile with -property. That's why I've
> >> wrapped it into a template, to avoid having to use parens.
> > 
> > Never used -property.
> 
> I don't use it either myself, but I believe someone mentioned it's
> going to become the default one day.

Yes. -property was introduced to give an opportunity for people to migrate to 
property enforcement and to give the compiler a chance to iron out any bugs 
that it may have with regards to property enforcement. But @property is 
supposed to be enforced. It only isn't because we're still in a period of 
migration from when @property didn't exist and you could call any no-argument 
(or single-argument function when using assignment) with or without parens.

- Jonathan M Davis


More information about the Digitalmars-d mailing list