From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Asynchronous Transfer of Control
Date: Thu, 10 Apr 2014 03:41:15 -0700 (PDT)
Date: 2014-04-10T03:41:15-07:00 [thread overview]
Message-ID: <594ec168-808b-4b4e-96ff-5eb569e52413@googlegroups.com> (raw)
This piece of code is very similar to RM 9.7.4(10-13).
It seems that GNT GPL 2013 on Windows does ot work correctly.
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Calendar;
use Ada.Calendar;
procedure Run_It is
Line: String (1 .. 10);
Last: Natural;
Now : constant Time := Clock;
begin
select
delay 10.0;
Put_Line ("aborted " & Integer'Image (last) & Duration'Image (Clock - Now));
then abort
Put (" > ");
Get_Line (Line, Last);
Put_Line ("terminated" & Integer'Image (last) & Duration'Image (Clock - Now));
end select;
end Run_It;
This is the result if I only press <return> after the delay has expired:
C:\...\Ada-Kode\run_it
>
terminated 0 26.688941821
aborted 0 26.689382659
[2014-04-10 12:24:42] process terminated successfully (elapsed time: 26.92s)
I.e. the abortable_part is not aborted.
Am I missing something? Or is this expected behaviour on Windows?
next reply other threads:[~2014-04-10 10:41 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 10:41 AdaMagica [this message]
2014-04-10 14:43 ` Asynchronous Transfer of Control Dmitry A. Kazakov
2014-04-10 15:15 ` Adam Beneschan
2014-04-10 17:36 ` Adam Beneschan
2014-04-10 22:49 ` Randy Brukardt
2014-04-10 23:16 ` Adam Beneschan
2014-04-10 18:44 ` AdaMagica
2014-04-10 19:07 ` sbelmont700
-- strict thread matches above, loose matches on Subject: below --
1996-10-16 0:00 James Squire
1996-10-16 0:00 ` Robert Dewar
1996-10-23 0:00 ` James Squire
1996-10-23 0:00 ` Robert Dewar
1996-10-17 0:00 ` Tucker Taft
1996-10-17 0:00 ` Robert A Duff
1996-10-18 0:00 ` Ken Cowan
1996-10-18 0:00 ` Robert A Duff
1996-10-19 0:00 ` Robert Dewar
1996-10-21 0:00 ` Philip Brashear
1996-10-17 0:00 ` Latest /= Greatest (was: Asynchronous Transfer of Control) Larry Kilgallen
1996-10-22 0:00 ` Asynchronous Transfer of Control Dale Stanbrough
1996-10-21 0:00 ` Robert Dewar
1996-10-21 0:00 ` Larry Kilgallen
1996-10-26 0:00 ` Robert Dewar
1996-10-22 0:00 ` Norman H. Cohen
1996-10-21 0:00 ` Pascal Ledru
1996-10-22 0:00 ` Jon S Anthony
1996-10-23 0:00 ` James Squire
1996-10-23 0:00 ` Robert Dewar
1996-10-29 0:00 ` m193884
1996-10-29 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox