Re: Are Associative Arrays unique to Perl?

sitaram@diac.com (Sitaram Chamarty)
3 Nov 1996 00:30:28 -0500

          From comp.compilers

Related articles
[4 earlier articles]
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)
Re: Are Associative Arrays unique to Perl? lhf@csg.uwaterloo.ca (1996-10-30)
Re: Are Associative Arrays unique to Perl? boffi@rachele.stru.polimi.it (giacomo boffi) (1996-10-30)
Re: Are Associative Arrays unique to Perl? sitaram@diac.com (1996-11-03)
Re: Are Associative Arrays unique to Perl? hbaker@netcom.com (1996-11-03)
Re: Are Associative Arrays unique to Perl? hammen@gothamcity.jsc.nasa.gov (Dave Hammen) (1996-11-05)
| List of all articles for this month |
From: sitaram@diac.com (Sitaram Chamarty)
Newsgroups: comp.lang.perl.misc,comp.lang.misc,comp.compilers
Date: 3 Nov 1996 00:30:28 -0500
Organization: none
References: <5437ev$30u@shell1.aimnet.com> <545mqn$qul@picasso.op.net> 96-10-099 96-10-141
Keywords: design

(I'm responding to the subject line, so no quotes...)


I saw this question some time ago, and was so sure someone would post
this that I didnt bother. Since noone seems to have (that I can see),
let me add Rexx to the list. Rexx calls them "stemmed variables", but
they are really just associative arrays - the syntax places a "."
between the root of the stem and the variable that contains the key,
so that:


$hash{$key}


would be


hash.key


in Rexx. (In Rexx, any variable that hasnt been assigned to, springs
into existence with a string value that is the variable name's
uppercased version, so this works rather like Perl's barewords
interpretation). More details in private e-mail if the original
poster wants <sheepish grin> forgot who it was :-(


Sitaram.
[You can get much the same effect using Lisp property lists, and that
goes back to at least 1960. Any earlier refs? I think Lisp is
earlier than COMIT. -John]


--


Post a followup to this message

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