What to do about default function arguments
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Apr 26 07:33:04 PDT 2012
On Wed, Apr 25, 2012 at 10:39:01PM -0700, Walter Bright wrote:
> On 4/25/2012 10:29 PM, Ary Manzana wrote:
> >I don't understand the relationship between two delegate types being
> >the same and thus sharing the same implementation for default
> >arguments for *different instances* of a delegate with the same type.
> >
> >Maybe a bug in how it's currently implemented?
>
> If you call a delegate directly, then the default arguments work. If
> you call it indirectly, the default arguments won't work.
This is even more an argument for *not* including default arguments in
the type.
T
--
IBM = I Blame Microsoft
More information about the Digitalmars-d
mailing list