On Thursday 08 October 2015 16:34, anonymous wrote: > On Thursday 08 October 2015 06:14, extrawurst wrote: > >> `The -property switch has been deprecated.` Does that mean >> @property has no effect anymore ? > > Yes.
Correction: @property has at least one effect without -property. typeof acts differently on properties vs non-properties. ---- struct S { @property int p(); int n(); } pragma(msg, typeof(S.init.p)); /* int */ pragma(msg, typeof(S.init.n)); /* int() -- i.e. a function */ ---- I wasn't aware of this before Jonathan M Davis told me [1]. I don't think it's specified anywhere, at least I can't find anything. [1] https://github.com/D-Programming-Language/dlang.org/pull/1119#issuecomment-146576866