On Saturday, January 28, 2012 23:10:01 Andrej Mitrovic wrote: > On 1/28/12, Trass3r <[email protected]> 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
