POV-Ray : Newsgroups : povray.off-topic : This is the sort of brokenness... : Re: This is the sort of brokenness... Server Time
6 Sep 2024 07:15:56 EDT (-0400)
  Re: This is the sort of brokenness...  
From: Fredrik Eriksson
Date: 18 Mar 2009 13:43:54
Message: <op.uqz0vkjo7bxctx@e6600>
On Wed, 18 Mar 2009 17:44:23 +0100, Darren New <dne### [at] sanrrcom> wrote:
>
> [1] For example, you could declare an identical class with a different  
> name, except with all the privates public, then cast a pointer to the  
> private class into a pointer to the public class. Don't even need to  
> depend on compiler-specific knowledge about element layout and such. Or  
> just declare a child class that is happy to change any of its private  
> variables.

Except that the compiler is not required to generate the same layout in  
those two cases, so you would still depend on compiler-specific knowledge.


-- 
FE


Post a reply to this message

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