Crazy stuff

Bill Baxter dnewsgroup at billbaxter.com
Sun Apr 27 16:44:37 PDT 2008


Jarrett Billingsley wrote:
> "Simen Kjaeraas" <simen.kjaras at gmail.com> wrote in message 
> news:op.uaaga9ht1hx7vj at spill04.lan...
> 
> I'm just importing std.stdio. I think string is a compiler-defined alias,
> but I
> can't say whence I got the idea.
> 
> ------------------------
> 
> string/wstring/dstring are defined in object.d, which is implicitly imported 
> from every module.  So it might as well be defined by the compiler.  In D1, 
> they alias to char[], wchar[], and dchar[]; in D2, invariant(char)[], 
> invariant(wchar)[], and invariant(dchar)[]. 

... in Phobos.  But not in Tango.  Unless it changed in the release that 
came out yesterday or so.

--bb


More information about the Digitalmars-d-learn mailing list