__traits(getDelegate, ...)

Jacob Carlborg doob at me.com
Mon Feb 4 00:01:32 PST 2013


On 2013-02-04 06:20, Andrei Alexandrescu wrote:

> void delegate(string) dg = &s.foo;

I know that this expression works. But since this works, why can't we 
overload on the return value. This seems to be do exactly this. The 
arguments I heard against overloading on the return value is due the LHS 
of an expression shouldn't affect the RHS.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list