What is the best declaration type for a string like parameter?

Puming via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 28 18:03:50 PST 2016


On Thursday, 28 January 2016 at 15:10:38 UTC, Adam D. Ruppe wrote:
>
> But for just both string and char[], yeah, const is the way to 
> do it.
>
> [...]

Thanks for the clear explaination. So `in char[]` is stricter 
(and safer) than `const(char)[]`. I will stick to that.


More information about the Digitalmars-d-learn mailing list