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=2.1 required=5.0 tests=BAYES_00,INVALID_MSGID,
MSGID_RANDY,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no
version=3.4.4
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 103376,f0ecd5ca045c4f0b
X-Google-Attributes: gid103376,public
From: "Pascal Obry"
Subject: Re: char -> int
Date: 1998/11/18
Message-ID: <72tu7q$h6s$1@cf01.edf.fr>#1/1
X-Deja-AN: 413067789
References: <36527480.5A60@usa.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: EDF
Newsgroups: comp.lang.ada
Date: 1998-11-18T00:00:00+00:00
List-Id:
alex a �crit dans le message <36527480.5A60@usa.net>...
>How do I cast char to an int using ada?
What is a char and what is an int :-) ??
Maybe you wanted to talk about Character and Integer, in
this case :
C : Character;
I : Integer;
C := Character'Val (I);
I := Character'Pos (C);
Pascal.