POV-Ray : Newsgroups : povray.programming : Pass a POV object to a class : Re: Pass a POV object to a class Server Time
28 Jul 2024 18:13:06 EDT (-0400)
  Re: Pass a POV object to a class  
From: Ron Parker
Date: 15 Mar 2001 08:05:20
Message: <slrn9b1fgh.f75.ron.parker@fwi.com>
On Thu, 15 Mar 2001 08:00:50 +0200, Peter Popov wrote:
>On Wed, 14 Mar 2001 15:14:09 +0100, "Mael" <Mae### [at] hotmailcom>
>wrote:
>
>>you can use an OBJECT* and call Inside_Object :
>>Inside_Object (VECTOR IPoint, OBJECT *Object)
>
>But isn't OBJECT a struct? I mean, I know it works for classes (that's
>how I fit them all in the same list) but I didn't know it worked for
>structs.

It is a struct, but one of its members is an array of pointers to functions.
A C++ programmer might call it a vtable.

The first C++ compilers compiled to C, you know.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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