Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!arisia!sgi!shinobu!odin!delrey!shap From: shap@delrey.sgi.com (Jonathan Shapiro) Newsgroups: comp.lang.c++ Subject: Re: default arg handling Message-ID: <5261@odin.SGI.COM> Date: 14 Mar 90 19:52:00 GMT References: <1116@xyzzy.UUCP> <11430020@hpldola.HP.COM> Sender: news@odin.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 19 In article <11430020@hpldola.HP.COM> patch@hpldola.HP.COM (Pat Chkoreff) writes: >/ hpldola:comp.lang.c++ / shap@delrey.sgi.com (Jonathan Shapiro) / 4:13 pm Mar 10, 1990 / > >As Mark Langley has pointed out, the supplying of default arguments should >be thought of as the responsibility of the caller, not part of the function >definition. De facto, C++ says otherwise. If what you say were true, the following would be legal: extern foo(int = 5); ... extern foo(int = 10); in the same file. Note that C++ disallows this. Jon