D's templates now seem weak to me...
Oskar Linde
oskar.lindeREM at OVEgmail.com
Mon Feb 20 08:40:26 PST 2006
Ben Phillips wrote:
> instead of having to write "something!(int).someFunction(i)" (which seems
> excessively verbose for one function) you could write someFunction!(int)(i)
You can do this if you name the template the same as the function. This
has nothing to do with the template being defined by the short or long
form. Read under Implicit Template Properties in the docs.
/Oskar
More information about the Digitalmars-d
mailing list