comp.lang.ada
 help / color / mirror / Atom feed
From: pvanbell@mhv.net (Paul Van Bellinghen)
Subject: Re: Why Ada is not the Commercial Lang of  Choice
Date: 1997/06/21
Date: 1997-06-21T00:18:36+00:00	[thread overview]
Message-ID: <33ab1c1c.2926201@news.mhv.net> (raw)
In-Reply-To: EC03q1.J3A@world.std.com



This is all well and good when you know the exact address to set the
variable to. The problem comes with a variable of type "address" that
you need to perform masking on. I was unable to re-cast a variable of
type "address" (which was derived from unsigned integer) to an
unsigned integer  so that I could mask out the lower 48 bits. That's
why I went the "unchecked conversion" route. Ada seems to be so
strictly typed that even though a variable is typed or sub-typed as
unsigned integer, it is treated as a completely different type than a
variable typed as unsigned integer.

>>    Mem_Map: Integer;
>>    for Mem_Map'Address use 16#B010_0040#;
>
>By the way, this will typically need a To_Address call, since in many
>implementations, type Address is not an integer type.  The RM recommends
>a private type, which I think is sensible.
>
>- Bob





  reply	other threads:[~1997-06-21  0:00 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-18  0:00 Why Ada is not the Commercial Lang of Choice Robert I. Eachus
1997-06-18  0:00 ` Dale Stanbrough
1997-06-19  0:00   ` Robert A Duff
1997-06-21  0:00     ` Paul Van Bellinghen [this message]
1997-06-20  0:00       ` Robert Dewar
1997-06-23  0:00         ` John G. Volan
1997-07-03  0:00           ` Shmuel (Seymour J.) Metz
1997-07-03  0:00             ` Robert Dewar
1997-07-06  0:00               ` Yasmiin S. Davis
1997-07-06  0:00                 ` Robert Dewar
1997-07-07  0:00               ` Shmuel (Seymour J.) Metz
1997-07-04  0:00             ` Paul Van Bellinghen
1997-07-13  0:00               ` Ken Mays
1997-07-13  0:00                 ` Robert Munck
1997-07-14  0:00                   ` Ken Mays
1997-06-19  0:00   ` Steve Jones - JON
1997-06-19  0:00     ` Anonymous
1997-06-19  0:00     ` Peter Hermann
1997-07-17  0:00     ` Shmuel (Seymour J.) Metz
1997-06-20  0:00   ` Robert Dewar
1997-06-20  0:00   ` Don Harrison
1997-06-20  0:00     ` Roy Grimm
1997-06-20  0:00     ` Donovan Baarda
1997-06-20  0:00     ` Larry Kilgallen
1997-06-20  0:00       ` Nick Leaton
1997-06-23  0:00       ` Don Harrison
1997-06-24  0:00         ` Bertrand Meyer
1997-06-24  0:00           ` Nick Leaton
1997-07-22  0:00           ` Dr. Vladimir Il'ich Fomin
1997-06-23  0:00     ` Joachim Durchholz
1997-06-23  0:00     ` Robert Dewar
1997-06-24  0:00       ` Don Harrison
1997-06-24  0:00         ` Robert Dewar
1997-06-20  0:00 ` Robert Dewar
1997-06-21  0:00 ` Keith Thompson
1997-06-21  0:00   ` Robert Dewar
1997-06-24  0:00     ` Ken Garlington
1997-06-24  0:00       ` Robert Dewar
1997-06-28  0:00   ` Robert I. Eachus
1997-06-28  0:00     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-06-13  0:00 Paul Van Bellinghen
1997-06-17  0:00 ` Robert Dewar
1997-06-20  0:00   ` nma123
1997-06-24  0:00     ` Adam Beneschan
1997-06-17  0:00 ` Dale Stanbrough
1997-06-17  0:00   ` Robert Munck
1997-06-18  0:00   ` Ken Garlington
1997-06-19  0:00     ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-06-19  0:00       ` Ken Garlington
1997-06-18  0:00 ` Nick Roberts
1997-06-18  0:00   ` Peter Hermann
1997-06-20  0:00     ` Robert Dewar
1997-06-25  0:00     ` Van Snyder
1997-06-26  0:00       ` Robert Dewar
1997-06-30  0:00         ` Ralph Paul
1997-07-02  0:00           ` Joerg Rodemann
1997-07-02  0:00             ` Ralph Paul
1997-07-02  0:00             ` Joerg Rodemann
1997-06-19  0:00 ` Steve Doiel
1997-06-19  0:00   ` Anonymous
1997-07-22  0:00 ` Shmuel (Seymour J.) Metz
replies disabled

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