D2 string conversion

John C johnch_atms at hotmail.com
Sun May 10 02:31:06 PDT 2009


Sam Hu Wrote:

> Hi Sivo & John,
> 
> Thank you very much!!!The two versions all work.
> 
> But I am a bit confused with the key word *in* in both versions.

It's simple, really. Strings are immutable in D2. And "in" is equivalent to "immutable".

By the way, best to use wstring (for UTF-16) or string (for UTF-8) in your parameter declarations.


More information about the Digitalmars-d-learn mailing list