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,182c0df39337eeca X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!proxad.net!nerim.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Wide Character Problem in Ada.Numerics Date: Fri, 27 Apr 2007 14:08:44 +0200 Organization: Adalog Message-ID: References: <1177363740.965003.247270@l77g2000hsb.googlegroups.com> <462daae8$1@news.post.ch> <1177432510.964311.114370@r3g2000prh.googlegroups.com> <1177609437.376996.161050@n35g2000prd.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1177678861 12612 195.25.228.57 (27 Apr 2007 13:01:01 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 27 Apr 2007 13:01:01 +0000 (UTC) User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <1177609437.376996.161050@n35g2000prd.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:15350 Date: 2007-04-27T14:08:44+02:00 List-Id: Adam Beneschan a �crit : > On Apr 25, 5:27 pm, Brian May wrote: >>>>>>> "Jean-Pierre" == Jean-Pierre Rosen writes: >> >> Wait a minute... are you saying that in GNAT, you cannot WITH a >> >> package unless the source of the WITH'ed package uses the same >> >> encoding as the source of the package doing the WITH'ing? >> >> Ouch. This somehow seems to run counter to the whole >> >> philosophy of abstraction that packages are supposed to >> >> provide. >> >> How do you expect the compiler to know what encoding is used for each >> source file? I think it could only know if the file was compiled >> first. > > Well, the original example had a problem with a language-defined > package that was WITH'ed. So surely that file must have been compiled > first? By *somebody*??? I hope they're not releasing runtime > packages that they've never compiled!!!!!! > I think you missed the point about the source model used by Gnat. A specification never needs to be compiled (unless it is a bodyless package). It is really treated like a #include: it is read everytime you "with" the package. So I assume it is recompiled with the current compilation options - including the encoding scheme, which causes the problem. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr