Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!columbia!cs!beshers From: beshers@cs.cs.columbia.edu (Clifford Beshers) Newsgroups: comp.lang.c++ Subject: Re: Default argument values Message-ID: Date: 23 Jul 89 21:08:08 GMT References: Sender: news@cs.columbia.edu Followup-To: comp.lang.c++ Distribution: comp Organization: Columbia University Computer Science Lines: 26 In-reply-to: fox@cs.cs.columbia.edu's message of 23 Jul 89 20:52:25 GMT 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) or foo(parm1 := val1, parm3 := val2, parm2 := val3) or foo(parm1 ---> val1, parm3 ---> val2, parm2 ---> val3). And some more semantics. Should you allow mixing of the two types or specification, e.g. foo(val1, parm3 <- val2, parm2 <- val3) what happens with: foo(parm3 <- val2, val1, parm2 <- val3) It is not a simple addition to the language, but it would be useful. -- ----------------------------------------------- Cliff Beshers Columbia University Computer Science Department beshers@cs.columbia.edu