Pretty please: Named arguments
Michel Fortin
michel.fortin at michelf.com
Mon Feb 28 07:01:58 PST 2011
On 2011-02-28 09:55:54 -0500, Michel Fortin <michel.fortin at michelf.com> said:
> On 2011-02-28 09:34:30 -0500, spir <denis.spir at gmail.com> said:
>
>> So, let's use ':'.
>
> Note however that ':' already has a meaning in templates arguments.
> Using ':' for named function arguments would preclude having named
> template arguments (or force template arguments to use yet another
> syntax).
Oops, sorry. I was mixing up template definition and template
instanciation. Turns out there's no real problem:
template Test(T : U) { }
Test!(T: int);
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list