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


Harry Vennik <htven...@zonnet.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |htven...@zonnet.nl


--- Comment #1 from Harry Vennik <htven...@zonnet.nl> 2011-04-01 09:32:40 PDT 
---
The point is that you are getting the address of the property function, not the
address of the ref return value. Adding the () changes this, because the () is
evaluated before &.

So the real problem is a syntax ambiguity.

It depends on the context how the reference to the property is evaluated. Try
this:
typeof(a.bla)    // returns  int
typeof(&a.bla)  // returns  int delegate() @property ref

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to