From -7108441978518905898
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a1681fbe736bf77b
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-06-03 20:08:09 PST
Newsgroups: comp.std.c++
Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!uhog.mit.edu!xn.ll.mit.edu!xn!haydens
From: haydens@wayback.atc.ll.mit.edu (Hayden Schultz x3685 )
Subject: Re: Why do default arguments have to be at the end?
In-Reply-To: affrunti@orion.oac.uci.edu's message of 3 Jun 94 17:49:40 GMT
Message-ID: <HAYDENS.94Jun3230156@wayback.atc.ll.mit.edu>
Lines: 24
Sender: usenet@xn.ll.mit.edu
Reply-To: haydens@ll.mit.edu
Organization: M.I.T. Lincoln Lab - Air Traffic Surveillance Group
References: <affrunti.770665780@orion.oac.uci.edu>
Date: 04 Jun 1994 03:01:56 GMT


>>>>> "Bob" == Bob Affrunti <affrunti@orion.oac.uci.edu> writes:

Bob> Why couldn't you have something like:

Bob> x.afunction( ,2,3,4 ); x.afrunction( ,2,,4 );

Well, for one thing there is an operator,(). So what would the above
syntax mean? Trouble for both the programmer and the compiler
writer. I think that anyone who writes code like afunction(a,(b,c),c)
should be taken out and shot, but that's valid C++ (and C) code, which
would be broken or very difficult to interpret.  Plus, it would be one
more break with C syntax for no real gain in functionality.

	Hayden

-- 
Hayden Schultz
haydens@ll.mit.edu
MIT Lincoln Lab
244 Wood St.
Lexington, MA, 02173
(617) 981-3685



