comp.lang.ada
 help / color / mirror / Atom feed
From: Maxim Reznik <reznikmm@gmail.com>
Subject: Re: Printing the address
Date: Tue, 11 May 2021 05:35:09 -0700 (PDT)	[thread overview]
Message-ID: <cca82828-7bf1-415b-a44d-92d0c03e9bc2n@googlegroups.com> (raw)
In-Reply-To: <609a5eaf$0$20558$e4fe514c@news.kpn.nl>

Actually, you don't need the address image to find if it is null. You can print instead

Put_Line (Boolean'Image (Boxes (n) = null));

When you really need the address image you can use

function System.Address_Image (A : Address) return String;

and an instantiation of

System.Address_To_Access_Conversions

generic package to convert Box_Acces value to System.Address.

PS. BTW, I would use a debugger in such cases.

       reply	other threads:[~2021-05-11 12:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <609a5eaf$0$20558$e4fe514c@news.kpn.nl>
2021-05-11 12:35 ` Maxim Reznik [this message]
2021-05-11 14:55   ` Printing the address Niklas Holsti
2021-05-11 12:41 ` Niklas Holsti
replies disabled

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