automatic conversion to invariant (string?)

Yossarian xtauer01 at stud.fit.vutbr.cz
Thu Mar 20 08:58:37 PDT 2008


Dne Thu, 20 Mar 2008 15:56:01 +0100 Janice Caron <caron800 at googlemail.com>  
napsal/-a:

> On 20/03/2008, Yossarian <xtauer01 at stud.fit.vutbr.cz> wrote:
>> but string is invariant(char)[]. and that's problem for me, because some
>>  of the standard libraries aren't ready for this.
>
> Specifically, which ones?


I can't, for example do this:
throw new Error("This is an text of error");

I must do
throw new Error(cast(string)"This is an text of error");

-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/



More information about the Digitalmars-d mailing list