From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: Converting Char to Enum
Date: 3 Mar 2002 16:46:05 -0600
Date: 2002-03-03T16:46:05-06:00 [thread overview]
Message-ID: <RIB+W0cr8eAz@eisner.encompasserve.org> (raw)
In-Reply-To: Xns91C6D92FB9742Lars17NoCBW@larsno.fqdn.th-h.de
In article <Xns91C6D92FB9742Lars17NoCBW@larsno.fqdn.th-h.de>, Lars Noschinski <lars@usenet.noschinski.de> writes:
> Kilgallen@SpamCop.net (Larry Kilgallen) wrote:
>> Lars Noschinski <lars@usenet.noschinski.de> writes:
>>> convert : constant array(characters) of symbols := ...
> [...]
>>> "sym := convert(char)"?
>>>
>>> In this case, how I catch invalid characters?
>>
>> Perhaps with one additional symbol named INVALID_CHARACTER.
>
> Ok, that's a possibility. But I thougt, inband-signalling would be a no-
> no?
It depends on whose rules you are using, and how well you localize
that other symbol. If you do conversion in a function, that could
be (by your own decision) the only place where INVALID_CHARACTER is
used.
Case statements elsewhere could have:
when others =>
-- something is desparately wrong...
next prev parent reply other threads:[~2002-03-03 22:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-02 18:17 Converting Char to Enum Lars Noschinski
2002-03-03 1:15 ` sk
2002-03-03 16:43 ` Robert Dewar
2002-03-03 18:54 ` Lars Noschinski
2002-03-03 20:07 ` Larry Kilgallen
2002-03-03 20:21 ` Lars Noschinski
2002-03-03 22:46 ` Larry Kilgallen [this message]
2002-03-04 6:55 ` Jeffrey Carter
2002-03-03 20:13 ` tmoran
2002-03-03 6:30 ` tmoran
2002-03-04 11:01 ` sk
[not found] ` <3C835426.DA864199@myob.com>
2002-03-04 12:48 ` David C. Hoos, Sr.
2002-03-04 16:36 ` Lars Noschinski
2002-03-04 23:17 ` David C. Hoos
2002-03-05 15:55 ` Lars Noschinski
2002-03-05 20:15 ` David C. Hoos
-- strict thread matches above, loose matches on Subject: below --
2002-03-06 6:23 Christoph Grein
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox