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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6a101516e416e1a8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-09 14:40:43 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada Subject: Help: What's happening here? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Sun, 9 Sep 2001 22:35:20 +0100 NNTP-Posting-Host: 62.253.12.197 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1000071330 62.253.12.197 (Sun, 09 Sep 2001 22:35:30 BST) NNTP-Posting-Date: Sun, 09 Sep 2001 22:35:30 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:12960 Date: 2001-09-09T22:35:20+01:00 List-Id: Hi, Curiously this code doesn't work. GNAT spit's out the error "ces" not declared in "unicode", but it is, since the "withs" work ok. It's just when it's renamed or used... e.g. unicode.ces.basic_8bit.to_utf32 (blah) doesn't work when i compile it! Nor does a renaming like below... The package body looks like this (playing with XML/Ada) with unicode.ces; with unicode.ces.basic_8bit; package body preferences.conversions.unicode is package basic_8bt renames unicode.ces.basic_8bit; -- takes a latin1 string and converts it to a -- unicode encoded (utf16) string; -- function to_unicode_string (str : in string) return utf16_string is begin return str; -- temp! Must fix end to_unicode_string; ... end preferences.conversions.unicode; and just in case the spec with unicode.ces.utf16; use unicode.ces.utf16; package preferences.conversions.unicode is -- takes a latin1 string and converts it to a -- unicode encoded (utf16) string; -- function to_unicode_string (str : in string) return utf16_string; ... end preferences.conversions.unicode; There's obviouly a rule of some sort I'm not familiar with, could someone please enlighten me? Thanks, Chris