[Issue 7965] Invalid outer function scope pointer in some cases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 2 01:13:00 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7965
--- Comment #4 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-07-02 12:15:37 MSD ---
I think this bug may be fixed when `std.algorithm` will work.
Example mentioned in this issue description (now fails):
---
import std.array;
import std.algorithm;
void main() {
string s = "x";
auto arr = map!(a => (s ~= "y", s ~ a ~ a))("a b".splitter(" ")).array();
assert(arr == ["xyaa", "xyybb"]);
}
---
A bit reduced case:
---
import std.algorithm;
void main() {
string s = "x";
auto f = map!(a => s)("a b".splitter(" ")).front;
}
---
--
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