Mail Archives: djgpp/1997/12/08/16:01:18
This is odd. I always write constructurs like so:
class foo {
int bar;
double baz;
foo (void) { bar=5; baz=18.669; }
inline foo (int x);
}
foo::foo(int x) {
bar=x;
baz=double(x)+0.5;
}
and never have any problems. The dox on writing C++ I've read all seem to
indicate you just don't specify any return type on constructors at all,
and let the compiler take care of it, and the same for destructors.
--
.*. Friendship, companionship, love, and having fun are the reasons for
-() < life. All else; sex, money, fame, etc.; are just to get/express these.
`*' Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com
- Raw text -