enum overloading
strtr
strtr at spam.com
Sun May 23 05:35:41 PDT 2010
== Quote from Ellery Newcomer (ellery-newcomer at utulsa.edu)'s article
> That would work except
> a) walter's hijacking fetish; if you want to overload a function with
> one imported from an external module, you'd have to do something like
> import std.string: toString;
Nice, that seems to work.
So to overload functions from other modules you need to selectively import them..
Can't find anything about that in the docs.
Did I miss it or should I add a bug report?
> (it strikes me that this is a necessary product of a loose type system)
It is? :)
> From a discussion with walter a while back, I gathered not possible.
> b) std.string.toString isn't a function - it's a template
More information about the Digitalmars-d-learn
mailing list