comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Container for access values.
Date: Thu, 3 May 2012 10:40:18 +0200
Date: 2012-05-03T10:40:18+02:00	[thread overview]
Message-ID: <1z6q1ozdu121$.1fo9qmoh5livg$.dlg@40tude.net> (raw)
In-Reply-To: 9057885.637.1336033565315.JavaMail.geo-discussion-forums@vbq19

On Thu, 3 May 2012 01:26:05 -0700 (PDT), David Pettersson wrote:

> So "<" is defined for addresses but not for accesses. So all I have to do 
> is to take the address of the accesses' targets and compare them.

Don't forget checking for null:

   return
      Ptr (Right) /= null
   and then
      (Ptr (Left) = null  or else Left.all'Address < Right.all'Address);

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-05-03  8:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-03  7:08 Container for access values David Pettersson
2012-05-03  7:56 ` Dmitry A. Kazakov
2012-05-03  8:26 ` David Pettersson
2012-05-03  8:40   ` Dmitry A. Kazakov [this message]
2012-05-03 14:18 ` Robert A Duff
replies disabled

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