From: Simon Wright <simon@pushface.org>
Subject: Re: POSIX.Semaphores question
Date: Mon, 05 Dec 2011 17:59:52 +0000
Date: 2011-12-05T17:59:52+00:00 [thread overview]
Message-ID: <m2ehwic31j.fsf@pushface.org> (raw)
In-Reply-To: 8fbf5f51-f133-41bf-9457-b3f85e3950c9@x7g2000yqb.googlegroups.com
awdorrin <awdorrin@gmail.com> writes:
> I tried the following line:
>
> Text_IO.Put_Line( System.Address_Image(SemPtr'Address) & " -> " &
> System.Address_Image(SemPtr.all'Address) );
>
> The first Address_Image worked fine, but I could never get the second
> to compile, I kept seeing the error:
> "prefix of dereference must be an access type"
That's because "type Semaphore_Descriptor is private;", so your code
can't see the fact that it's privately implemented as "access constant
POSIX.C.sem_t;".
next prev parent reply other threads:[~2011-12-05 17:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 15:43 POSIX.Semaphores question awdorrin
2011-12-02 16:54 ` awdorrin
2011-12-02 17:06 ` Georg Bauhaus
2011-12-02 17:09 ` Georg Bauhaus
2011-12-02 17:22 ` awdorrin
2011-12-03 16:32 ` awdorrin
2011-12-03 19:59 ` Niklas Holsti
2011-12-05 12:25 ` awdorrin
2011-12-05 14:19 ` Georg Bauhaus
2011-12-05 16:58 ` awdorrin
2011-12-05 17:59 ` Simon Wright [this message]
2011-12-06 0:53 ` awdorrin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox