[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Re: Virtual functions used in constructor illegal ! ??

yow!! is this true markm?
In article <27556AD1.350C@xxxxxxxx>  chip@xxxxxxxx write:
>According to jbuck@xxxxxxxxxxxxxxxxxxxx (Joe Buck):
>>[E&S] actually says that if you do call a virtual method in the
>>constructor, that the base class method is always called, even
>>if you redefine the method.
>This is true, but only if you are calling the virtual function from
>the actual constructor function body.  If you call a virtual function
>from a constructor by other means, such as calling a function that
>calls the virtual function, E&S says that the behavior is undefined,
>i.e. all bets are off.
>Chip Salzenberg at Teltronics/TCT     <chip@xxxxxxxx>, <uunet!pdn!tct!chip>
>    "I've been cranky ever since my comp.unix.wizards was removed
>         by that evil Chip Salzenberg."   -- John F. Haugh II