comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Type casting question
Date: 1999/12/21
Date: 1999-12-21T00:00:00+00:00	[thread overview]
Message-ID: <83n9qq$8bq$1@nnrp1.deja.com> (raw)
In-Reply-To: 385E87D8.2B44B800@tridsys.com

In article <385E87D8.2B44B800@tridsys.com>,
  comp.lang.ada@ada.eu.org wrote:
> Suppose I have a string xxx which has the some value in it,
> How can I convert that xxx into the above declared val1?
> I have to copy xxx into val1. I need to somehow do the
> type casting for the above.


Don't use the term type casting, it is never appropriate in
Ada, and in fact what you want has nothing to do with type
casting in say the C sense.

What you want is conversion routines, provided in Ada using
the 'Value and 'Image attributes, look them up in any Ada book!


Sent via Deja.com http://www.deja.com/
Before you buy.




      parent reply	other threads:[~1999-12-21  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-20  0:00 Type casting question Raju Vemulamanda
1999-12-20  0:00 ` DuckE
1999-12-21  0:00 ` David C. Hoos, Sr.
1999-12-21  0:00 ` Robert Dewar
1999-12-21  0:00   ` reason67
1999-12-21  0:00     ` Robert Dewar
1999-12-21  0:00       ` reason67
1999-12-22  0:00         ` Ted Dennison
1999-12-23  0:00         ` Robert Dewar
1999-12-23  0:00           ` reason67
1999-12-23  0:00             ` Larry Kilgallen
1999-12-24  0:00               ` Robert Dewar
1999-12-23  0:00             ` reason67
1999-12-23  0:00             ` Robert Dewar
1999-12-23  0:00             ` Robert Dewar
1999-12-21  0:00 ` Robert Dewar [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