static foreach considered
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 8 13:02:10 PDT 2015
Walter and I are looking at ways to implement it. Here's a
baseline without static foreach - a "trace" function that prints
function calls before they are made:
http://dpaste.dzfl.pl/762c83c7fe30
If the function is overloaded, that won't work. In such cases,
static foreach might be helpful. Here's code from the cycle "I
have a dream":
http://dpaste.dzfl.pl/82a70c809210
I'm trying to collect together motivating examples and to figure
out the semantics of the feature.
Andrei
More information about the Digitalmars-d
mailing list