Re: optional parameters

paulb@pablo.taligent.com (Paul Beusterien)
Tue, 15 Aug 1995 01:46:21 GMT

          From comp.compilers

Related articles
optional parameters stefan.monnier@epfl.ch (Stefan Monnier) (1995-08-06)
Re: optional parameters markt@harlequin.co.uk (1995-08-10)
Re: optional parameters paulb@pablo.taligent.com (1995-08-15)
Re: optional parameters stachour@parka.winternet.com (1995-08-20)
| List of all articles for this month |
Newsgroups: comp.compilers
From: paulb@pablo.taligent.com (Paul Beusterien)
Keywords: C++, Lisp, design
Organization: Taligent, Inc.
References: 95-08-064 95-08-084
Date: Tue, 15 Aug 1995 01:46:21 GMT

      > How are optional parameters implemented ? I'm sure the technique is
      > not the same for C++ than for CommonLisp (and, for CommonLisp
      > &optional are probably not handled the same as &key and as &rest).


In C++ the caller can get all of the parameters from the prototype. Thus,
the code generator does not need to even know that there is anything
unusual about the call.


Of course varargs routines like printf is another story ....
--


Paul Beusterien
Paul_Beusterien@taligent.com
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.