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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,37956b356498633 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-03 14:46:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!newsfeed.onecall.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Converting Char to Enum Date: 3 Mar 2002 16:46:05 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1015195571 7231 192.135.80.34 (3 Mar 2002 22:46:11 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sun, 3 Mar 2002 22:46:11 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:20738 Date: 2002-03-03T16:46:05-06:00 List-Id: In article , Lars Noschinski writes: > Kilgallen@SpamCop.net (Larry Kilgallen) wrote: >> Lars Noschinski 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...