Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,10 @@
with Ada.Task_Identification; use Ada.Task_Identification;
procedure Main is
-- Create as many task objects as your program needs
begin
-- whatever logic is required in your Main procedure
if some_condition then
Abort_Task (Current_Task);
end if;
end Main;

View file

@ -0,0 +1,11 @@
procedure Main is
-- Create as many task objects as your program needs
begin
-- whatever logic is required in your Main procedure
if some_condition then
-- for each task created by the Main procedure
The_task.Stop;
-- end the Main procedure
return; -- actually, this is not needed
end if;
end Main;

View file

@ -0,0 +1,14 @@
task body Some_Task is
begin
loop
select
-- Some alternatives
...
or accept Stop do
-- Some cleanup while holding the caller is here
end Stop;
-- A cleanup asynchronous to the caller is here
exit; -- We are through
end select
end loop;
end Some_Task;

View file

@ -0,0 +1,10 @@
task body Some_Task is
begin
loop
select
-- Some alternatives
...
or terminate; -- We are through
end select
end loop;
end Some_Task;

View file

@ -0,0 +1,3 @@
If problem Then
Exit
Endif

View file

@ -0,0 +1,3 @@
IF problem
STOP RUN
END-IF

View file

@ -0,0 +1,3 @@
IF problem
GOBACK
END-IF

View file

@ -0,0 +1,2 @@
(when something
(kill-emacs))

View file

@ -0,0 +1,3 @@
If 1 = 1 Then
Program.End()
EndIf

View file

@ -0,0 +1,4 @@
local condition = true
local code = false
if condition then os.exit(code, true) end

View file

@ -0,0 +1,3 @@
if (somecondition) {
exit
}

View file

@ -0,0 +1 @@
if error? try [6 / 0] [quit]

View file

@ -0,0 +1 @@
if error? try [dangerous-operation] [quit/return -12]

View file

@ -0,0 +1 @@
if error? try [something-silly] [q/return -12]

View file

@ -0,0 +1 @@
view layout [button "stopme" [halt]]

View file

@ -0,0 +1 @@
⍣(°1|&exit1) 0

View file

@ -0,0 +1,11 @@
dim i, j
j = 0
do
for i = 1 to 100
while j < i
if i = 3 then
wscript.quit
end if
wend
next
loop