2 // ships required in order to run this code
4 #ship iscratch : Iscratch
6 // instructions not in any codebag are part of the "root codebag"
7 // which is dispatched when the code is loaded
10 BOB: sendto iscratch.cbd;
11 iscratch.cbd: [*] take, deliver;
12 debug.data: [*] take, deliver;
15 // This codebag illustrates how to do a loop. Notice that this
16 // is actually an uncontrolled data emitter -- it could clog the
20 12: sendto debug.data;
21 13: sendto debug.data;
22 14: sendto debug.data;
23 BOB: sendto iscratch.cbd;