Open m-ender opened 9 years ago
Ln
could just be a regular synchroniser, and then have the Rn
device influence the normal synchronisers' behavior. (Then &0
would stall until all &0
devices or a |0
(using |n
here for Rn
) is reached).
Is there a meaningful symbol for these? So far we don't have any devices with alphabetic first letters.
@mrskin I believe that was a deliberate choice (to use symbols for base devices to free up the namespace for naming boards). I'd suggest |n
for the release device: synchronisers are &n
, and act somewhat like an AND operator (all must be filled to continue), and the release device acts somewhat like an OR operator (either all synchronisers are filled, or the release device is filled when the synchroniser is released).
An asymmetric version of the synchronisers could be useful. Say we call them
Rn
andLn
. TheLn
hold a marble like a synchroniser and stall. TheRn
let all marbles pass through. But if a marble goes through anRn
, all marbles in the correspondingLn
are released.(This would be a device which cannot be implemented within Marbelous, so would be an actual language addition.)