POV-Ray : Newsgroups : povray.off-topic : Question to the programers here : Re: Question to the programers here Server Time
29 Jul 2024 16:22:49 EDT (-0400)
  Re: Question to the programers here  
From: Darren New
Date: 29 Jul 2011 22:19:51
Message: <4e336a47$1@news.povray.org>
On 7/29/2011 15:46, H. Karsten wrote:
> I just initialise an array with the size of zero an append something to it.

There are a number of languages that do this. Most of the "scripting" 
languages let you do this or something very like it - Tcl, PHP, Python, etc.

C++ and Smalltalk have libraries that provide types that are standard and 
take care of making the array bigger for you when you fill it up.

So, yeah, it's not too uncommon. Only the really low-level languages like C 
or assembler or old Fortran or whatever makes that difficult.

All those languages also have "maps" either built in or as standard 
libraries, letting you essentially make an array that's indexed by anything 
you want, such as strings.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

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