From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c3155860644be062 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-24 07:38:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!spool0900.news.uu.net!reader0901.news.uu.net!not-for-mail Date: Mon, 24 Feb 2003 10:38:28 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030202 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Thanks guys..my project and my many problems References: <3E5A2381.21FD3F14@bton.ac.uk> In-Reply-To: <3E5A2381.21FD3F14@bton.ac.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1046101109.45189@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@fixedcost.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1046101110 reader1.ash.ops.us.uu.net 12574 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:34515 Date: 2003-02-24T10:38:28-05:00 List-Id: 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.