|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |