|
|
On Mon, 27 Nov 2000 16:45:50 -0500, Chris Huff wrote:
>In article <slr### [at] fwicom>, ron### [at] povrayorg
>wrote:
>
>> I think I'd rather see associative arrays a la perl.
>
>Maybe Warp can implement that as a macro... :-)
>Could you give more information on what the syntax would be like? Aren't
>associative arrays just structures that "associate" a string or hash
>with a variable?
The Perl syntax, which is, well, Perl syntax, is
$foo{"bar"}
which indicates "the scalar member of associative array foo having index
'bar'".
An associative array is a variable-sized data structure (a hash table,
in Perl) which associates a key with an arbitrary scalar value. Perl
uses them to do its equivalent of data structures, among other things.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|