[Issue 4353] std.utf.stride doesn't work in ctfe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 8 05:11:36 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4353
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-12-08 05:09:58 PST ---
Actually this isn't a CTFE bug. The issue is implicit conversion of string
literals.
-------
void stride(const(char[]) s) {}
void stride(const(dchar[]) s) {}
void main(){
string w = "hi";
stride(w); // ok
stride("hi"[]); // ok
stride("hi"); // fails
}
------
--
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