name variable function call

BCS BCS at pathlink.com
Wed Oct 3 17:11:28 PDT 2007


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



More information about the Digitalmars-d mailing list