Anonymous user
Sleep: Difference between revisions
m
added Diego entry
m (→{{header|Phix}}: marked p2js compatible) |
m (added Diego entry) |
||
Line 1,028:
WriteLn('Awake!');
end.</lang>
=={{header|Diego}}==
Diego is zero-threaded, meaning that the callee can handle the instruction how they wish (dependant on decision behaviour), however, the thread behaviour can be stipulated in code.
<lang diego>begin instuct(sleepTime);
ask_human()_first()_msg(Enter number of seconds to sleep: )_var(sleepSecs)_me();
set_decision(asynchronous)_me();
me_msg(Sleeping...);
me_sleep[sleepSecs]_unit(secs);
me_msg(Awake!);
reset_decision()_me();
end_instruct(sleepTime);
exec_instruct(sleepTime)_me();
</lang>
=={{header|DIBOL-11}}==
|