comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Thanks guys..my project and my many problems
Date: Mon, 24 Feb 2003 10:38:28 -0500
Date: 2003-02-24T10:38:28-05:00	[thread overview]
Message-ID: <1046101109.45189@master.nyc.kbcfp.com> (raw)
In-Reply-To: <3E5A2381.21FD3F14@bton.ac.uk>

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.




  parent reply	other threads:[~2003-02-24 15:38 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 [this message]
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
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