From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: how do i include 111111 in an enumaration type ?
Date: 1999/10/12
Date: 1999-10-12T00:00:00+00:00 [thread overview]
Message-ID: <3802f4ee_3@news1.prserv.net> (raw)
In-Reply-To: 7ttuvt$ssb$1@minus.oleane.net
In article <7ttuvt$ssb$1@minus.oleane.net> , "Sybs ALHABSHI"
<sybs@htsavoie.com> wrote:
> Thanks for the hint. Yet I'll risk asking a ridiculous beginner's question :
> Can't I have ..sort of an array of strings ?
Are you going to change the values? If so, then you could do this:
subtype VString_Length is Natural range 0 .. 81;
type VString (Length : VString_Length) is
record
S : String (1 .. Length);
end record;
function "+" (S : String) return VString is
begin
return VString'(S'Length, S);
end;
type VString_Array is
array (Positive range <>) of VString;
-- Here's your "array of strings":
Table : VString_Array (1 .. 10);
Table(2) := +"hello";
Table(5) := +"this is a string";
--
No statement which refers to a "reality" transcending the limits of all
possible sense-experience can possibly have any literal significance;
the labours of those who have striven to describe such a reality have
all been devoted to the production of nonsense.
Alfred Jules Ayer, "Language, Truth, and Logic"
next prev parent reply other threads:[~1999-10-12 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7tsq3o$92p$1@minus.oleane.net>
1999-10-12 0:00 ` how do i include 111111 in an enumaration type ? Nick Roberts
1999-10-14 0:00 ` Sybs ALHABSHI
[not found] ` <38021792_4@news1.prserv.net>
[not found] ` <slrn80495c.2a2.aidan@skinner.demon.co.uk>
1999-10-11 0:00 ` Keith Thompson
1999-10-12 0:00 ` Sybs ALHABSHI
1999-10-12 0:00 ` Lutz Donnerhacke
1999-10-12 0:00 ` Matthew Heaney
1999-10-12 0:00 ` Lutz Donnerhacke
1999-10-12 0:00 ` Ted Dennison
1999-10-12 0:00 ` Ted Dennison
1999-10-13 0:00 ` Lutz Donnerhacke
1999-10-13 0:00 ` Matthew Heaney
1999-10-13 0:00 ` Ted Dennison
1999-10-12 0:00 ` Matthew Heaney [this message]
1999-10-12 0:00 ` Ehud Lamm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox