The issue is that strings aren't input ranges in betterC [1],
due to autodecoding.
Normally you'd work around this using std.utf.byCodeUnit, but
that's currently broken, because std.utf attempts to import
core.exception.UnicodeException from druntime at module scope
[2], causing any betterC
On Saturday, 22 February 2020 at 02:01:25 UTC, SrMordred wrote:
//-betterC
import core.stdc.stdio;
import std.algorithm;
void main(){
printf( "%d\n",startsWith("a","b") );
}
//Fails to compile with betterC, dmd/ldc2 last versions.
Any reason for not work with betterC or should i file the
//-betterC
import core.stdc.stdio;
import std.algorithm;
void main(){
printf( "%d\n",startsWith("a","b") );
}
//Fails to compile with betterC, dmd/ldc2 last versions.
Any reason for not work with betterC or should i file the issue ?
(Find this on a bindbc lib, so i think that it may have