POV-Ray : Newsgroups : povray.general : Pov 4.00 question : Re: Pov 4.00 question Server Time
7 Aug 2024 03:22:47 EDT (-0400)
  Re: Pov 4.00 question  
From: Warp
Date: 30 Jan 2002 18:03:03
Message: <3c587ba7@news.povray.org>
Jan Walzer <jan### [at] lzernet> wrote:
: Reality is: _I_ (read that this means Me, and only Me) don't care, if SDL
: resembles OO by the definition, or not... Maybe it would be enough, to stay
: modular...

  In fact, the povray SDL has currently very poor means of achieving good
modularity.
  You can't make modules (classes, structs, whatever) with public interfaces
and private attributes and implementations, you can't construct your own
abstract data types, you can't make objects (ie instances of these data
types) and so on. You can't even construct the most basic types of dynamic
data containers (eg. lists, trees and so on; and yes, I know about arrays,
but they are currently just too clumsy and inefficient as *dynamic* data
containers).

able to dynamically allocate them (and having references to these allocated
objects) would be an enormous step in versatility and modularity. Structures
and references cover most of the features needed for user-defined abstract
data types (although without interfaces they are still not very modular).

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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