http://d.puremagic.com/issues/show_bug.cgi?id=2962
tmn <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #43 from tmn <[email protected]> 2012-11-08 05:24:57 PST --- Using a local variable inside the delegate instead of a parameter of the calling function results in incorrect code: ---------------- module b; auto call(alias fun)() { return fun(0); } ---------------- module a; import b; import std.stdio; void main() { int x = 1; writeln(call!(a => x)); // should print the value of x } ---------------- $ dmd b.d a.d -ofa && ./a -771364480 (Using DMD64 D Compiler v2.060 on Linux) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
