Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!utoday!comeau From: comeau@utoday.UUCP (Greg Comeau) Newsgroups: comp.lang.c++ Subject: Re: Some questions on Zortech C++ Message-ID: <1127@utoday.UUCP> Date: 4 Jan 90 02:57:51 GMT References: <10159@saturn.ucsc.edu> <1172@zip.eecs.umich.edu> Reply-To: comeau@.UUCP (Greg Comeau) Organization: UNIX Today!, Manhasset, NY Lines: 33 In article <1172@zip.eecs.umich.edu> yhe@zip.eecs.umich.edu.UUCP (Youda He) writes: >Here are some questions on bug/feature of Zortech C++: >(2) initialize parameter: > class foo { > int foo(int i=0); > }; > // and later: > int foo(int i=0) > { > //code body > } > this will cause compiler error, redefine initialized parameter. (sort of) > will C++ 2.0 accept this? Did you mean that (a bunch of errors) or: class foo { foo(int i=0); }; // and later: foo::foo(int i=0) { //code body } ?? which cfront 2.0 doesn't like either since it assumes (I think) 'i' is being initialized with 2 different unique values. -- Greg, Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418 Also, mag writer for UNIX Today! (SysAdm columnist), Microsoft Systems Journal (C programming), + others. Also, BIX c.language & c.plus.plus conf. moderator. Here:attmail!csanta!greg / BIX:comeau / CIS:72331, 3421 / voice:718-849-2355