name variable function call
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Oct 4 05:34:08 PDT 2007
"BCS" <BCS at pathlink.com> wrote in message
news:fe1b5s$2u9b$1 at digitalmars.com...
> with struct literals and opImplictCast we have it
>
>
> struct FnWithLotsOfArgs
> {
> int lots;
> float of;
> char args;
> int opImplicitCast(){...}
> }
>
> int i = FnWithLotsOfArgs(args:'t', of:3.14, lots:5);
>
> I think I remember that correctly
Oh wow!
Course it's a little "hidden" and you can counterintuitively instantiate
that struct. But still.
More information about the Digitalmars-d
mailing list