[Issue 10804] New: regression(2.063=>2.064) problem with Appender or dmd?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 11 18:13:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10804
Summary: regression(2.063=>2.064) problem with Appender or dmd?
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: thelastmammoth at gmail.com
--- Comment #0 from thelastmammoth at gmail.com 2013-08-11 18:13:04 PDT ---
on 2.063, behavior is normal, but on 2.064 this passes: (see "weird" below) (on
v2.064-devel-75f7752)
string identity(string a){
return a;
}
string fun(){
import std.array;
Appender!(string) ret;
ret.put("identity(`Ω`)");
return ret.data;
}
void main(){
enum a1="identity(`Ω`)";
enum a2=fun;
assert(a1==a2);
assert(mixin(a1)!=mixin(a2));//weird
enum a1b=mixin(a1);
enum a2b=mixin(a2);
assert(cast(ubyte[])a1b == [206, 169]);
assert(cast(ubyte[])a2b == [195, 142, 194, 169]);
}
--
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