What does func!thing mean?
bearophile
bearophileHUGS at lycos.com
Fri Nov 8 12:43:11 PST 2013
ProgrammingGhost:
> As if split.map was the template parameter. How does it know if
> split isn't a class (or if d has them, namespace) and map is a
> static function? Thats why it confused me.
D doesn't have namespaces, it has modules and packages. map is a
higher order function that returns a lazy templated range, a
templated struct.
My suggestion is to start from simpler things (simpler syntax)
and go up on from there. If you start from the end, you will be
confused :-)
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list