From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e91f674b5db5e2b2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-17 07:36:45 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!cyclone1.gnilink.net!news-east.rr.com!portc03.blue.aol.com!feed1.newsreader.com!feed2.newsreader.com!uunet!ash.uu.net!spool0900.news.uu.net!news0-alterdial.eu.uu.net!not-for-mail From: Juanma Barranquero Newsgroups: comp.lang.ada Subject: Re: Assigning the value of a deferred constant? Date: Mon, 17 Sep 2001 16:36:44 +0200 Message-ID: <7a2cqtcole1v0038jiorf4ncdant1fs3im@4ax.com> References: <09Oo7.12082$mj6.1852826@news6-win.server.ntlworld.com> <%pnp7.2820$p77.4870@www.newsranger.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.22.27.143 X-Trace: news0-alterdial.eu.uu.net 1000737404 24945 62.22.27.143 Xref: archiver1.google.com comp.lang.ada:13124 Date: 2001-09-17T16:36:44+02:00 List-Id: On Mon, 17 Sep 2001 14:04:43 GMT, Ted Dennison 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