[Proposal] Add module for C-strings support in Phobos
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Mar 22 09:48:40 PDT 2014
On 3/22/14, 6:01 AM, "Nordlöw" wrote:
>> #!/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'
Please bugzilla, thanks! -- Andrei
More information about the Digitalmars-d
mailing list