POV-Ray : Newsgroups : povray.off-topic : Generics annoyance : Re: Generics annoyance Server Time
4 Sep 2024 07:20:51 EDT (-0400)
  Re: Generics annoyance  
From: Invisible
Date: 13 Apr 2010 11:25:24
Message: <4bc48ce4$1@news.povray.org>
>> Heh, just use a language that has first-class functions, and store a 
>> collection of functions. ;-)
> 
> Except I want objects, and not just functions. They all have state, and 
> (worse) they tend to keep pointers to each other. The gridplane needs to 
> remember how big you want the grid, and it also needs to know where the 
> camera is so it can draw itself, for example. The guy in the maze needs 
> to know where the camera is, needs the maze structure, needs the 
> reference to the gamepad, etc.

It wasn't an entirely serious suggestion. (Although you could probably 
make it work. Just have the functions point to the state you want them 
to mutate...)


Post a reply to this message

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