[Proposal] Add module for C-strings support in Phobos
"Nordlöw"
per.nordlow at gmail.com
Sat Mar 22 06:01:10 PDT 2014
> #!/usr/bin/env rdmd-dev-module
>
> unittest {
> import std.stdio: wln = writeln;
> import std.string;
> wln(typeof("a".z).stringof);
> }
Correction:
unittest {
import std.stdio: wln = writeln;
import std.string;
alias z = toStringz;
wln(typeof("a".z).stringof);
}
gives same error
t_string.d(7,19): Error: no property 'z' for type 'string'
More information about the Digitalmars-d
mailing list