Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!microsoft!alonzo From: alonzo@microsoft.UUCP (Alonzo Gariepy) Newsgroups: comp.lang.c++ Subject: Re: Default argument values Message-ID: <7093@microsoft.UUCP> Date: 26 Jul 89 01:10:05 GMT Reply-To: alonzo@microsoft.UUCP (Alonzo Gariepy) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 21 >In article fox@cs.cs.columbia.edu (David Fox) writes: > > > Well, you'd need some new syntax, like > > foo(parm1 <- val1, parm3 <- val2, parm2 <- val3) Why not some more simple compromise such as allowing empty commas. This way, all the default parameters don't have to be at the end of the list. int foo(a = 3, b, c = 12, d = 12); foo(4, 7, , 10); // c gets 12 foo(, 6); // a gets 3, c gets 12, d gets 12 foo(4,,7); // **error** b has no default Or am I naive? Alonzo Gariepy // If Microsoft has an opinion, alonzo@microsoft // they haven't told it to me.