On 1/23/13, Adam D. Ruppe <destructiona...@gmail.com> wrote: > On Wednesday, 23 January 2013 at 17:13:05 UTC, Timon Gehr wrote: > Amen! -property MUST die. @property should fix the real problems > with properties, not leave that broken while adding new problems.
About @property problems, I've recently ran into this: ModuleInfo.unitTest is defined as @property void function() unitTest() nothrow pure; And if I use it: foreach (m; ModuleInfo) { if (m is null) continue; if (auto fp = m.unitTest) { fp(); // calls it m.unitTest(); // doesn't call it m.unitTest()(); // calls it } } This is regardless of the -property switch. I would expect the second call to work. Anyone know if this is filed already?