Re: Are Associative Arrays unique to Perl?

andy@research.canon.com.au (Andy Newman)
24 Oct 1996 22:05:01 -0400

          From comp.compilers

Related articles
Re: Are Associative Arrays unique to Perl? mjd@plover.com (1996-10-20)
Re: Are Associative Arrays unique to Perl? andy@research.canon.com.au (1996-10-24)
Re: Are Associative Arrays unique to Perl? mzenier@netcom.com (1996-10-24)
Re: Are Associative Arrays unique to Perl? leichter@smarts.com (Jerry Leichter) (1996-10-24)
Re: Are Associative Arrays unique to Perl? ok@cs.rmit.edu.au (1996-10-24)
Re: Are Associative Arrays unique to Perl? hbaker@netcom.com (1996-10-25)
Re: Are Associative Arrays unique to Perl? phr@netcom.com (1996-10-30)
Re: Are Associative Arrays unique to Perl? ian@five-d.com (1996-10-30)
[5 later articles]
| List of all articles for this month |
From: andy@research.canon.com.au (Andy Newman)
Newsgroups: comp.lang.perl.misc,comp.lang.misc,comp.compilers
Date: 24 Oct 1996 22:05:01 -0400
Organization: Canon Information Systems Research Australia
References: <5437ev$30u@shell1.aimnet.com> <545mqn$qul@picasso.op.net> 96-10-099
Keywords: design, history

The ICI language has a similar construct. What it calls a "struct" is
really a dictionary object, a collection of key/value pairs that may
be arbitrary objects. As in Lisp strings are "atomic" and have a
unique address in the interpreter's address space (as can all
objects). Unlike the SNOBOL array implementation ICI uses a hash table
for the finding the key/value pair. This mechanism is used to
implement ICI's "scope" structures that store variables and their
values (struct objects also have a chain of "super" structs to form a
scope hierarchy). It works very nicely and allows all sorts of "map"
data structures to be declared and accessed via the (native- code)
hash table lookup.


--
Andy Newman <andy@research.canon.com.au>
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.