[Oberon] How to mimic an associative array

Chris Burrows chris at cfbsoftware.com
Mon Dec 6 04:55:57 CET 2010


>-----Original Message-----
>From: Duke Normandin [mailto:dukeofperl at ml1.net] 
>Sent: Monday, 6 December 2010 1:41 PM
>To: ETH Oberon and related systems
>Subject: Re: [Oberon] How to mimic an associative array
>
>On Mon, 6 Dec 2010, Chris Burrows wrote:
>
>> >From: Duke Normandin [mailto:dukeofperl at ml1.net]
>
>> > To use Sven's method, I suppose
>> >I would have to use A2 as my programming environment. Or Component 
>> >Pascal maybe?
>> >
>>
>> If you use Component Pascal there is an excellent chance all 
>the work 
>> has already been done for you - all you have to do is find it. As 
>> there are
>> (IIRC) more than 70,000 procedures available in the 
>Microsoft.NET v2.0 
>> framework (an early version that I still use) that can be a 
>challenge.
>
>I don't use CP or Microsoft products at the moment. 

OK - if you do get to try GPCP you could use the version that generates JVM
code and can use Java Class libraries:

http://plas.fit.qut.edu.au/gpcp/JVM.aspx

I don't have any Java experience myself but a quick search came up with the
HashMap class:

http://download.oracle.com/javase/7/docs/api/java/util/HashMap.html

Regards,
Chris



 




More information about the Oberon mailing list