UFCS and delegates

Steve Teale steve.teale at britseyeview.com
Sat Mar 15 02:41:16 PDT 2014


On Saturday, 15 March 2014 at 09:13:47 UTC, Rikki Cattermole 
wrote:

> yours no.
> Because a delegate stores a context ptr aka this. As well as a 
> function pointer. What you were doing meant that no content 
> pointer was being stored. Essentially it was just a function 
> pointer without the first argument added.

Why isn't the first argument, removed in the rewrite, used as the 
context?

In cases where the type of the first argument was not suitable, 
the compiler could issue an error message.


More information about the Digitalmars-d mailing list