D's templates now seem weak to me...

Ben Phillips Ben_member at pathlink.com
Mon Feb 20 09:52:19 PST 2006


In article <dtcrdp$2529$1 at digitaldaemon.com>, Oskar Linde says...
>
>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
>

Thanks for the heads up! I missed that.





More information about the Digitalmars-d mailing list