POV-Ray : Newsgroups : povray.off-topic : Wahahahaha! : Re: Wahahahaha! Server Time
11 Oct 2024 17:48:10 EDT (-0400)
  Re: Wahahahaha!  
From: Darren New
Date: 11 Nov 2007 17:41:56
Message: <47378534$1@news.povray.org>
Warp wrote:
>   It would be difficult for the compiler to follow how the functions are
> being called (and, in fact, it's impossible for it to know if the pure
> virtual function actually gets called in the general case).

Especially if that function is already compiled and in a library 
somewhere. :-)

>   The problem with calling a pure virtual function in the base class
> constructor is that the derived class has yet not been initialized and
> thus calling a derived class function implementation could cause undefined
> behavior because it's not constructed.

You mean, undefined behavior as opposed to a core dump? ;-)

-- 
   Darren New / San Diego, CA, USA (PST)
     Remember the good old days, when we
     used to complain about cryptography
     being export-restricted?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.