From: Markus Rogawski <mrogawsk@cae-gmbh.de>
Subject: Re: COMPILATION-EXECUTION
Date: 1998/12/16
Date: 1998-12-16T00:00:00+00:00 [thread overview]
Message-ID: <3677728F.C32AA713@cae-gmbh.de> (raw)
In-Reply-To: 7560eo$5fk$2@platane.wanadoo.fr
Oh, very nice! An Christmas riddle!
Celinio schrieb:
> subtype M is Character range 'A' .. 'Z';
> C: array (M) of Natural;
> I: integer : =1;
> **************************************
> What can be inferred from the following calls (compilation and then
> execution ) ?
> C('i'):=1;
>
compiler: error
> C('I'):=I;
>
natural is a subtype of integer. As long the value of I is an natural it
should work. Otherwise it should throw an exception: Constained_error.
> C('I'):='I';
>
Compiler: error
> C(I):=I;
>
compiler: error
> C('I'):=0;
Looks ok.Hello Celinio!
Why not try it on your compiler?
Tsch"o
Markus
next prev parent reply other threads:[~1998-12-16 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-15 0:00 COMPILATION-EXECUTION Celinio
1998-12-16 0:00 ` Markus Rogawski [this message]
1998-12-17 0:00 ` COMPILATION-EXECUTION Dale Stanbrough
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox