[Issue 5787] Invisible multiple function calls in static foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 28 09:52:33 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5787
--- Comment #1 from bearophile_hugs at eml.cc 2011-03-28 09:49:05 PDT ---
Kai Meyer has shown this related program:
import std.typecons: tuple;
import std.c.stdio: printf;
auto foo() {
printf("foo\n");
return tuple(1, 2);
}
void main() {
auto f2 = foo().tupleof;
}
Its output:
foo
foo
So maybe the problem seems isn't caused by the static foreach.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list