From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: Programming for the World in Ada95
Date: 2000/02/14
Date: 2000-02-14T00:00:00+00:00 [thread overview]
Message-ID: <38A860D7.E9A46AA3@maths.unine.ch> (raw)
In-Reply-To: 38A83838.44A43A7D@res.raytheon.com
> Is there an easy way to specify message strings at load time, or must
> this be done at compile time?
You can do both with an enumerated type : type language is ( english,... )
For load time, you can have several files with a message per line,
whose names are "msg_file: array( language ) of string( 1..8 ):= ( "engl.msg",...
or use "language'image" for that.
Each message would be indexed by another, (orthogonal:-) enumerated type:
"type message is ( alert_such, warning_bla,... );".
Loading via
"Open(f, msg_file( chosen_language )); for m in message loop Get_Line(f,..."
For compile you could use constant arrays or use case statements for displaying.
Just ideas. A primitive implementation in AD's source
direct: http://members.xoom.com/gdemont/logiciel/ad.zip
page: http://members.xoom.com/gdemont/ad.htm
HTH
--
Gautier
next prev parent reply other threads:[~2000-02-14 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-14 0:00 Programming for the World in Ada95 John J Cupak Jr
2000-02-14 0:00 ` Gautier [this message]
2000-02-14 0:00 ` Ehud Lamm
2000-02-14 0:00 ` Larry Kilgallen
2000-02-16 0:00 ` Robert A Duff
2000-02-15 0:00 ` Jean-Pierre Rosen
2000-02-15 0:00 ` Marin D. Condic
2000-02-15 0:00 ` Ray Blaak
2000-02-16 0:00 ` Pascal Obry
2000-02-16 0:00 ` Ray Blaak
2000-02-16 0:00 ` Nick Roberts
2000-02-16 0:00 ` Larry Kilgallen
2000-02-16 0:00 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox