[linux-elitists] Opera beta for linux available
Fri Oct 6 13:48:11 PDT 2000
On Fri, Oct 06, 2000 at 09:11:00PM +0100, Paul J Collins wrote:
> >>>>> "Dan" == Dan Wilder <email@example.com> writes:
> Dan> On Fri, Oct 06, 2000 at 08:15:51PM +0100, Paul J Collins wrote:
> >> >>>>> "Deirdre" == Deirdre Saoirse <firstname.lastname@example.org> writes:
> Deirdre> Console says: pure virtual method called
> >> Oh dear. Check your constructors, Opera c0derz.
> Dan> The nearest Eiffel equivalent of C++'s "pure virtual" is
> Dan> "deferred", and the Eiffel compiler's gonna smack you upside
> Dan> the head if you try to instantiate a class with deferred
> Dan> features.
> So will a C++ compiler.
> The message Deirdre reported usually happens when you call a virtual
> function implemented in a class derived from the class of the
> constructor currently executing.
> While the compiler could warn about incorrect calls from constructors,
> it couldn't guard against passing the this pointer to a function
> outside the current translation unit that calls such a virtual
Eiffel ducks that one by
-- not permitting such pointer passing. The language is
supposed to be complete enough, you don't need to do
such scary things.
-- current translation unit (at the Eiffel level) is always the
That last isn't quite as onorous as you might expect, due
to various heuristics and shortcuts involving the existing
debris of previous compiliations.
More information about the linux-elitists