UFCS for struct opCall?
Steven Schveighoffer
schveiguy at yahoo.com
Tue Apr 9 11:54:44 PDT 2013
On Mon, 08 Apr 2013 23:49:14 -0400, kenji hara <k.hara.pg at gmail.com> wrote:
> UFCS should just work only for 'functions'.
> 'foo' is not a function, rather it is a functor. So this is proper
> behavior.
foo.opCall is a function. When you invoke foo is synonymous with
foo.opCall
The same should be true for delegates, function pointers, function
templates, function aliases, alias this, etc.
-Steve
More information about the Digitalmars-d
mailing list