You could also write: alias toStringz z;auto foo = "bar".z; and that would work too!
DMD currently cannot infer aliases to be callable using UCFS unfortunately:
#!/usr/bin/env rdmd-dev-module
unittest {
import std.stdio: wln = writeln;
import std.string;
wln(typeof("a".z).stringof);
}
errors with
t_string.d(19,19): Error: no property 'z' for type 'string'
Shouldn't be to hard to fix, though.
