until strange behavior

Jack Applegame japplegame at gmail.com
Sun Jun 2 06:26:01 PDT 2013


On Sunday, 2 June 2013 at 13:20:32 UTC, Temtaime wrote:
> Why
>
> char arr[3] = "abc";
> arr[].until('b').front has type of dchar ???
It is something wrong with ElementType template.

char arr[4] = [1,2,3,0];
writeln(ElementType!(typeof(arr[])).stringof); // writes dchar



More information about the Digitalmars-d-learn mailing list