[Issue 4353] New: std.utf.stride doesn't work in ctfe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 20 13:45:56 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4353
Summary: std.utf.stride doesn't work in ctfe
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2010-06-20 13:45:53 PDT ---
due to some petty stupid thing, unless you're willing to cast.
This:
import std.utf;
void main(){
enum
string s = "hi!";
enum
int i = stride(s,0);
}
gives this:
test.d(6): Error: function std.utf.stride called with argument types:
((string,int))
matches both:
std.utf.stride(in const(char[]) s, uint i)
and:
std.utf.stride(in const(dchar[]) s, uint i)
comment out the enums and it does no such thing.
Actually, pretending a char[] is a dchar[] might not be petty..
--
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