http://d.puremagic.com/issues/show_bug.cgi?id=8490


art.08...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |art.08...@gmail.com


--- Comment #2 from art.08...@gmail.com 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: -------

Reply via email to