Collections question

Sebastiaan Koppe via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 28 04:38:01 PST 2015


On Friday, 27 November 2015 at 20:14:21 UTC, Andrei Alexandrescu 
wrote:
> 1. Factory function:
> 2. The opCall trick:

1. Factory

Shouldn't opCall be used when you want something to (only) behave 
as a function? E.g. functors.


More information about the Digitalmars-d mailing list