POV-Ray : Newsgroups : povray.general : Sparse Data : Re: Sparse Data Server Time
11 Aug 2024 13:20:05 EDT (-0400)
  Re: Sparse Data  
From: Chris Huff
Date: 8 Jul 1999 11:26:53
Message: <3784C44F.571CDEBB@compuserve.com>
>Dynamic memory allocation is not possible in povray. This means that
you can't make, for example, lists or other dynamic data structure
types.
The only "half"-dynamic data type is the array, which is not very useful

for lists.<

Actually, it is, because POV-Ray is written in C, and the scene
description language is interpreted. I believe it dynamically allocates
the objects and variables (using pre-allocated memory for speed) as it
parses them, doesn't it? Now, you couldn't make pointers, and that kind
of thing, but the structures would be faster in C anyway, all you would
have to do is describe the structure to the parser, and tell the parser
what to put in it or retrieve from it.


Post a reply to this message

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