On 3/3/2011 7:23 PM, Graham St Jack wrote:
Ok, I don't mind supporting wchar and dchar in addition to char,
especially if Windows insists on using them.
My main issue here is with the constness of the parameters. I think the
correct parameter to pass is const C[]. This has the advantages of:
* Accepting both mutable and immutable data.
* Declares that the function won't mutate the data.
* Declares that the function doesn't expect the data to be immutable.
Agreed; I think I might modify that slightly to "in" instead of "const",
but it means the exact same thing.
Once upon a time "in" meant const scope. Does anyone know what it means
now?
"in" is a synonym for a non-parenthesized const.