comp.lang.ada
 help / color / mirror / Atom feed
From: "Rodrigo García" <rodrigo.garcia@epfl.ch>
Subject: Re: Thanks guys..my project and my many problems
Date: Tue, 25 Feb 2003 09:45:24 +0100
Date: 2003-02-25T09:45:24+01:00	[thread overview]
Message-ID: <3E5B2D24.3090504@epfl.ch> (raw)
In-Reply-To: 1046101109.45189@master.nyc.kbcfp.com

Hyman Rosen wrote:
> Paul Gregory wrote:
> 
>>   type English is (big, black, cat, dog, es, small, the, white);
>>   type French is (grand, noir, chat, chien, est, petit, le, blanc);
> 
> 
> This is the core of your difficulties. Since the dictionary is
> meant to be extensible (as you yourself have noticed), using
> enumerations to encode the words is inappropriate - these types
> are fixed at compile-time, and you cannot add to them at runtime.
> 
> You need to represent your words as strings, and maintain a mapping
> table between English and French that way. It would be easy in C++
> or Perl, which come with built in map containers. In Ada, you'll
> have to roll your own.
> 

   I prefer Python for this. Not surprisingly, in Python they call these 
kind of containers "Dictionaries".

   If you are using GNAT, maybe you can try its hash table...

Rodrigo




  parent reply	other threads:[~2003-02-25  8:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-24 13:52 Thanks guys..my project and my many problems Paul Gregory
2003-02-24 15:12 ` Preben Randhol
2003-02-24 15:38 ` Hyman Rosen
2003-02-24 18:08   ` Preben Randhol
2003-02-25  2:01     ` Hyman Rosen
2003-02-25  9:46       ` Preben Randhol
2003-02-25 16:07         ` Hyman Rosen
2003-02-24 18:37   ` Simon Wright
2003-02-24 22:55     ` Jano
2003-02-25 17:36       ` Matthew Heaney
2003-02-25 21:56     ` Simon Wright
2003-02-25  8:45   ` Rodrigo García [this message]
2003-02-25 17:34   ` Matthew Heaney
2003-02-25 18:03     ` Hyman Rosen
2003-02-26  8:14       ` Preben Randhol
2003-02-25 17:31 ` Matthew Heaney
2003-02-25 19:57   ` chris.danx
2003-02-25 21:17     ` Chad R. Meiners
2003-03-05  9:22       ` chris.danx
2003-02-26 14:06   ` Paul Gregory
2003-02-26 18:09     ` tmoran
2003-02-27 17:12     ` Update - PLEASE SOMEBODY HELP!!!! Paul Gregory
     [not found]       ` <bot2j-ei3.ln1@beastie.ix.netcom.com>
2003-02-28 10:16         ` Georg Bauhaus
2003-02-28 10:53           ` Paul Gregory
2003-02-28 16:47             ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox