function and variable

Fyodor Ustinov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 9 20:09:26 PST 2015


On Tuesday, 10 February 2015 at 03:59:22 UTC, Rikki Cattermole 
wrote:
> That's a bug. It should be using the function pointer.
>
> UFCS call should abide by the same scoping rules as anything 
> else.
> https://issues.dlang.org/show_bug.cgi?id=14161

Moreover. If the function is not defined (only pointer), I get 
this error:

aa.d(5): Error: no property 'f' for type 'int'

when try use 5.f();


More information about the Digitalmars-d-learn mailing list