About std.ascii.toLower
monarch_dodra
monarchdodra at gmail.com
Thu Sep 20 09:52:10 PDT 2012
On Thursday, 20 September 2012 at 16:34:22 UTC, bearophile wrote:
> monarch_dodra:
>
>> It's not, it only *operates* on ASCII, but non ascii is still
>> a legal arg:
>
> Then maybe std.ascii.toLower needs a pre-condition that
> constraints it to just ASCII inputs, so it's free to return a
> char.
>
> Bye,
> bearophile
I was thinking the exact same thing right after replying actually.
Would that actually change anything though? I mean what with
alignment and everything, wouldn't returning a char be just as
expansive? I'm not 100% sure. What is your use case that would
require this?
More information about the Digitalmars-d-learn
mailing list