From: "chris.danx" <chris.danx@ntlworld.com>
Subject: Help: What's happening here?
Date: Sun, 9 Sep 2001 22:35:20 +0100
Date: 2001-09-09T22:35:20+01:00 [thread overview]
Message-ID: <CgRm7.4349$iD.745158@news6-win.server.ntlworld.com> (raw)
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
next reply other threads:[~2001-09-09 21:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-09 21:35 chris.danx [this message]
2001-09-10 8:49 ` Help: What's happening here? Emmanuel Briot
2001-09-10 12:16 ` chris.danx
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox