Variable-length delegates?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 16 05:26:54 PST 2014


Is it a good idea to introduce in D a "fat delegate" that has a 
variable length (but its length is known at compile-time), able 
to contain two or more context pointers and/or one or more values 
or references, avoiding both some heap allocations of the closure 
and allowing coding patterns that require two or more context 
pointers?

Bye,
bearophile


More information about the Digitalmars-d mailing list