comp.lang.ada
 help / color / mirror / Atom feed
From: Eric Jacoboni <jaco@neottia.net>
Subject: Re: Question about Ada.Unchecked_Conversion
Date: Sat, 30 Oct 2004 19:18:23 +0200
Date: 2004-10-30T19:18:23+02:00	[thread overview]
Message-ID: <m2d5z06s68.fsf@mac.scrogneugneu.org> (raw)
In-Reply-To: 2uhtslF2bkb2mU1@uni-berlin.de

Nick Roberts <nick.roberts@acm.org> writes:

>   type Character_Category is
>      ( Ignore, Separator, Operator, Symbolic, [and so on] );
>

>   Cat_Of: constant array (Character) of Character_Category :=
>      ( ',' | ';' | ':' | '(' | ')' => Separator,
>        '+' | '-' | '*' | '/'       => Operator,
>        [and so on],
>        others                      => Ignore );
>

>   if Cat_Of(Char) = Separator then


Oh yes, that's a fine trick, too.

Thanks.
-- 
�ric Jacoboni, n� il y a 1402600607 secondes



      reply	other threads:[~2004-10-30 17:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29 12:46 Question about Ada.Unchecked_Conversion Eric Jacoboni
2004-10-29 14:22 ` Dmitry A. Kazakov
2004-10-29 14:26 ` Jean-Pierre Rosen
2004-10-29 15:15 ` Nick Roberts
2004-10-29 15:47   ` Eric Jacoboni
2004-10-30 10:23     ` skidmarks
2004-10-30 16:30       ` Nick Roberts
2004-10-30 17:18         ` Eric Jacoboni [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox