Why does 'string' alias immutable(char)[] and not immutable(char[]) ?

spir denis.spir at gmail.com
Wed Dec 1 03:17:48 PST 2010


Well, nearly everything is in the title... I would intuitively opt for the second type if I had to define an immutable string type.

Answers from various points of view (semantic, praticality, efficiency...) would be great if ever they may differ.

denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list