[Issue 9062] AddrExp should distinguish the existence of property resolution.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 23 05:41:31 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9062
--- Comment #8 from timon.gehr at gmx.ch 2012-11-23 05:41:30 PST ---
(In reply to comment #7)
> (In reply to comment #6)
> > > Then, there is no way to get a function pointer from property function, right?
> > > ...
> >
> > ()ref => foo
>
> It looks like a lambda. Is it same as this?
>
> ref __lambda() { return foo; }
>
Yes, it is the same as &__lambda, where __lambda is
static ref __lambda() { return foo; }
(the fact that the parser chokes on ref-qualified function/delegate literals
and function/delegate types is another bug.)
> But, on the return statement, foo is translated to foo(). It seems not
> possible.
&__lambda is a function pointer.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list