comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Gnat For use at Question
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00	[thread overview]
Message-ID: <DuDxGz.M8L@world.std.com> (raw)
In-Reply-To: 4s2eb5$qt6@masala.cc.uh.edu


In article <4s2eb5$qt6@masala.cc.uh.edu>, Spasmo <cosc19z5@Bayou.UH.EDU> wrote:
>Is System.Address a special type that has fields, or uses some
>kind of access procedures in the package to initialize?

Look at package System in the RM.  It's a private type (not an integer
type), and there are various conversion functions in System and its
children that can be used to create Address values.

Also, you will need to declare a *constant* of type Address, and use
that in the address clause.  Put the constant before the variable you're
setting the address of.

In Ada 95, the preferred syntax is "for X'Address use Blah;", rather
than "for X use at Blah;".

- Bob




      parent reply	other threads:[~1996-07-11  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-11  0:00 Gnat For use at Question Spasmo
1996-07-11  0:00 ` Jerry van Dijk
1996-07-11  0:00 ` Jon S Anthony
1996-07-11  0:00   ` Robert A Duff
1996-07-12  0:00   ` Jon S Anthony
1996-07-12  0:00   ` Laurent Guerby
1996-07-13  0:00     ` Jerry van Dijk
1996-07-15  0:00     ` Spasmo
1996-07-12  0:00   ` Robert Dewar
1996-07-12  0:00   ` Spasmo
1996-07-15  0:00   ` Jon S Anthony
1996-07-15  0:00   ` Jon S Anthony
1996-07-15  0:00     ` Robert Dewar
1996-07-15  0:00     ` Jerry van Dijk
1996-07-15  0:00     ` Spasmo
1996-07-11  0:00 ` Robert Dewar
1996-07-19  0:00   ` Spasmo
1996-07-11  0:00 ` Robert A Duff [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