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-Thread: 103376,5f074592a5f4c145 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!bigfeed2.bellsouth.net!news.bellsouth.net!border2.nntp.dca.giganews.com!nntp.giganews.com!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ada.Text_IO.Fixed_IO - strange prefix in output References: <3327cf9b-77ee-4fda-be11-603a53f47ff7@m73g2000hsh.googlegroups.com> From: Stephen Leake Date: Wed, 20 Aug 2008 07:48:55 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:jchRgEv+hJyMkNcXjooZDwXsJys= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 6e5ac48abfd51c74cf41804108 Xref: g2news2.google.com comp.lang.ada:7398 Date: 2008-08-20T07:48:55-04:00 List-Id: Maciej Sobczak writes: > Consider: > > with Ada.Text_IO; > with Ada.Calendar; > > procedure A is > > package Duration_IO is new > Ada.Text_IO.Fixed_IO (Ada.Calendar.Day_Duration); > > D : Ada.Calendar.Day_Duration := 0.0; > > begin > Duration_IO.Put (D); > end A; > > The above program produces the following output: > > N = 1 > 0.000000000 > > I use GNAT 3.4.6 (yes, that old). Was this a compiler/runtime bug? Yes, they delivered the runtime with "debug" pragmas enabled. You can recompile the runtime. -- -- Stephe