http://d.puremagic.com/issues/show_bug.cgi?id=8490
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from [email protected] 2012-08-29 15:11:31 PDT --- (In reply to comment #1) > This is related to pointers not just auto expressions: > > struct Foo { } > @property bool isTrue(Foo foo) { return true; } > > void main() > { > Foo* foo = new Foo; > bool b = foo.isTrue; > } @property bool isTrue(ref Foo foo) { return true; } should probably work, but the by-value version might be too dangerous to be allowed... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
