comp.lang.ada
 help / color / mirror / Atom feed
From: Juanma Barranquero <lektu@terra.es>
Subject: Re: Assigning the value of a deferred constant?
Date: Mon, 17 Sep 2001 16:36:44 +0200
Date: 2001-09-17T16:36:44+02:00	[thread overview]
Message-ID: <7a2cqtcole1v0038jiorf4ncdant1fs3im@4ax.com> (raw)
In-Reply-To: %pnp7.2820$p77.4870@www.newsranger.com

On Mon, 17 Sep 2001 14:04:43 GMT, Ted Dennison<dennison@telepath.com>
wrote:

>Sure. Declare it as a function instead of a constant.

From my previous message:

>I know I could have different bodies for different architectures, or
>just substitute a function for the deferrent constant, doing instead:
>
>  function Default_Byte_Order returns Byte_Order;
>  pragma Inline(Default_Byte_Order);

so I'd dare to say I had thought of that solution.

I'm not discussing whether what I try to do is elegant, efficient or
good from a software engineering point of view. I'm just asking if it
is posible or not in Ada. I seem to remember that Barnes' book
"Programming in Ada 95" discussed at some point the posibility of
having a constant view of a private variable, but I cannot find it
anymore, so I must be misremembering.

Still, it is posible?

Thanks,
                                                       /L/e/k/t/u




  reply	other threads:[~2001-09-17 14:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-15 19:36 Access types and classwide programming chris.danx
2001-09-15 20:28 ` chris.danx
2001-09-15 23:42 ` [Different Topic] Endianess? chris.danx
2001-09-16  6:22   ` Jeffrey Carter
2001-09-17  7:37   ` Juanma Barranquero
2001-09-17  7:53     ` Assigning the value of a deferred constant? Juanma Barranquero
2001-09-17 14:04       ` Ted Dennison
2001-09-17 14:36         ` Juanma Barranquero [this message]
2001-09-17 17:36           ` tmoran
2001-09-18  8:16             ` Juanma Barranquero
2001-09-18 18:40         ` Richard Riehle
2001-09-19  2:07           ` Vincent Marciante
2001-09-19  7:39           ` Juanma Barranquero
2001-09-16  6:19 ` Access types and classwide programming Jeffrey Carter
2001-09-16 13:37   ` chris.danx
2001-09-16 16:49     ` Jeffrey Carter
2001-09-16 18:24       ` David C. Hoos, Sr.
2001-09-17  6:15         ` Jeffrey Carter
2001-09-17  4:57     ` tmoran
2001-09-17 14:16       ` Ted Dennison
2001-09-16  9:32 ` tmoran
2001-09-17  9:41 ` John McCabe
replies disabled

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