Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!orchid!gamiddleton From: gamiddleton@orchid.UUCP Newsgroups: comp.lang.c++ Subject: Re: dumb question, probably Message-ID: <10145@orchid.waterloo.edu> Date: Fri, 7-Aug-87 19:02:40 EDT Article-I.D.: orchid.10145 Posted: Fri Aug 7 19:02:40 1987 Date-Received: Sun, 9-Aug-87 01:02:29 EDT References: <10120@orchid.waterloo.edu> Reply-To: gamiddleton@orchid.waterloo.edu (Guy Middleton) Distribution: comp Organization: University of Waterloo Lines: 16 In article <10120@orchid.waterloo.edu> gamiddleton@orchid.waterloo.edu (Guy Middleton) writes: > As far as I can tell, the following fragment should be (syntactically) > correct: > > [some stuff with constructors ... ] > > It works fine if zot::zot() is left undeclared (leaving 'void' out). > What am I missing? Or is this a bug? Several helpful people have pointed out that constructors do not have types, not even 'void'. In that case, it wasn't a *completely* dumb question, since the example I used (at the top of page 180 of the C++ book) has the same error. __ -Guy Middleton, University of Waterloo Institute for Computer Research gamiddleton@math.waterloo.edu, watmath!gamiddleton, gamiddleton@water.bitnet