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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1439b64f125c2d2e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!q2g2000cwa.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Normalize_Scalars Date: 7 Feb 2007 07:36:04 -0800 Organization: http://groups.google.com Message-ID: <1170862564.633232.263420@q2g2000cwa.googlegroups.com> References: <1170856753.227788.36470@s48g2000cws.googlegroups.com> <1170857744.665191.14780@p10g2000cwp.googlegroups.com> NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1170862577 12700 127.0.0.1 (7 Feb 2007 15:36:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Feb 2007 15:36:17 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q2g2000cwa.googlegroups.com; posting-host=206.122.158.4; posting-account=CZAoAgwAAAD9ntJQ85OlWL0_Q5EFdzP_ Xref: g2news2.google.com comp.lang.ada:9078 Date: 2007-02-07T07:36:04-08:00 List-Id: > Portable code? :-) > > But to be frank, I'm fine with GNAT-only Initialize_Scalars. Thank you > for pointing me in this direction. Anyway, you are not obliged to pollute your code with testing and/or unportable pragmas. You can put them in a file like "debug.pra" and compile with -gnatecdebug.pra . Advantages: - all your sources will be compiled with the pragma - you can keep a debug/test version and also have a fast one without changing source. - you can use also another Ada compiler for release (or not...). G.