From: Darren New <dnew@san.rr.com>
Subject: Re: Array of exception
Date: Wed, 03 Oct 2001 16:25:20 GMT
Date: 2001-10-03T16:25:20+00:00 [thread overview]
Message-ID: <3BBB3BE4.88B59DC1@san.rr.com> (raw)
In-Reply-To: Pmpu7.2877$403.1630126@news1.rdc1.sfba.home.com
tmoran@acm.org wrote:
>
> > when -1 => raise EXXX;
> > when -2 => raise EYYY;
> > ...
> >Using Exception_Id and Raise_Expression require me to rewrite the whole CASE
> >into an explicit array so I do not shorten the source code anyway. Only the
> Clarify please. It appears that somewhere you need to establish the
> relation between, eg, -2 and EYYY. Is
Coming from an interpreted-language background, the first thing that
jumped to my mind was to name everything like
EXXX_1 : exception;
EYYY_2 : exception;
EZZZ_3 : exception;
Then get the names of the exceptions, parse for the final underline,
convert to an integer, and away you go.
That's probably not very Ada tho. ;-)
--
Darren New
San Diego, CA, USA (PST). Cryptokeys on demand.
Who is this Dr. Ibid anyway,
and how does he know so much?
next prev parent reply other threads:[~2001-10-03 16:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-02 8:50 Array of exception Lutz Donnerhacke
2001-10-02 11:02 ` maa
2001-10-02 10:13 ` Lutz Donnerhacke
2001-10-02 20:23 ` tmoran
2001-10-03 16:25 ` Darren New [this message]
2001-10-04 8:53 ` Lutz Donnerhacke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox