Programming: Forks and Tasks

  1. The Generic Swinging Weapon
  2. Programming
  3. Using Files

Let's go back to Thor's hammer. We're not really letting him throw his hammer. We just tell everybody he threw it, which is almost the same thing. But we can also have the hammer actually be thrown, and then return after a short bit of time. We’ll re-write throw so that when Thor throws his hammer, it waits a bit at the destination, and then sails through the air back into his hand.

MOOs do not allow long-playing verbs. Any verb that takes too much time is terminated abruptly, with nary a polite goodbye. If your verb needs to wait before doing something, you have to tell it to go to sleep.

  1. The Generic Swinging Weapon
  2. Programming
  3. Using Files