19-May-2013 13:08, Dmitry Olshansky пишет:
18-May-2013 21:15, Jesse Phillips пишет:
I've found a difference from the existing std.uni.
Compile-time execution of toUpper/toLower does not work.
import uni;
void main() {
enum a = 'm';
static assert(a.toUpper == 'M');
static assert(a.toLower == 'm');
}
This never really was part of the contract in std.uni, but is probably a
good idea to continue supporting it.
Will take a stub at it.
Was already fixed in my Phobos fork. I must have hit it during the
integration process. Will re-sync the standalone version then.
This also works:
enum a = 'я';
static assert(a.toUpper == 'Я');
static assert(a.toLower == 'я');
--
Dmitry Olshansky