From: Simon Wright <simon@pushface.org>
Subject: Re: Using the Hash function
Date: Thu, 21 Jul 2011 15:57:53 +0100
Date: 2011-07-21T15:57:53+01:00 [thread overview]
Message-ID: <m2oc0nadfy.fsf@pushface.org> (raw)
In-Reply-To: d7fc0289-2276-4b99-ab9b-20ede2ceb3ce@t7g2000vbv.googlegroups.com
iloAda <egzgheib@gmail.com> writes:
> Hello everybody!!
>
> I am trying to use the hash function of the Unbounded_Strings package!
>
> Here's the code (very simple):
>
> 1 function Unbounded_String_Hash
> 2 (U_Str : Ada.Strings.Unbounded.Unbounded_String)
> 3 return Ada.Containers.Hash_Type
> 4 is
> 5
> 6 begin
> 7
> 8 return Ada.Strings.Unbounded.Hash (U_Str);
> 9 end Unbounded_String_Hash;
>
> I is giving me the following error on line 8 when I try to compile:
> missing "with Unbounded.Hash";
>
>
> Can anybody tell me what's going on (knowing that Unbounded.Hash isn(t
> an existing package)!!
>
> Thanks
>
> Elie
You need to say
with Ada.Strings.Unbounded.Hash;
as well as Ada.Containers.
next prev parent reply other threads:[~2011-07-21 14:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 14:40 Using the Hash function iloAda
2011-07-21 14:57 ` Simon Wright [this message]
2011-07-22 6:33 ` Stephen Leake
2011-07-22 8:29 ` iloAda
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox