comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: weird compilation error...
Date: 08 Jan 2004 16:13:34 -0500
Date: 2004-01-08T16:13:34-05:00	[thread overview]
Message-ID: <wccekuaqh35.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: c637494e.0401081233.1f0b7233@posting.google.com

mmq_2002@onetel.net.uk (Qas) writes:

> now the compilation error is this: 
> 
> search1.adb:33:14: expected type "Key_Array" defined at line 16
> search1.adb:33:14: found type "Standard.String"
> 
> now what does it mean by expected Key_array because as far as i can
> understand the key_array is a string array. or are string arrays not
> possible? if theyre not then will a record work?

An array-of-string is not a string.  You need to count the line numbers
as you read them in, and assign into each component separately.

By the way, type String is a pain, because each String is fixed length.
And you can't have an array of different-length Strings.  Your program
will be more flexible and easier to write if you use an Unbounded_String
instead.

- Bob



      reply	other threads:[~2004-01-08 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08 20:33 weird compilation error Qas
2004-01-08 21:13 ` Robert A Duff [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox