I don’t think the event handler proposed on caturday is in the spirrit of the language, instead i propose using OMG for that. OMG! Boss IZ coming GTG! — Simon, 2007/06/01 14:04


I was going to make the same suggestion, only instead of OMG, using ZOMG, as here:

  ZOMG caturday
      VISIBLE "I IZ SLEEPIN!"
  KTHX

You could also add declarable events, or, if the events list is fixed by libraries, define which are to trigger an event handler, using ONOES:

  ONOES caturday
  ONOES nofoodz
  ONOES donotwant

…and so on. Or, if you don't want to burn both keywords, ZOMG could indicate an individual event code block, and OMG could add one to watch, replacing ONOES:

  OMG caturday
  OMG nofoodz
  OMG donotwant

Solarbird, 2007/06/02 11:50


I would use OMG as a “throw” statement; I think it's pretty much in the spirit of the language. For example:

  HAI
  CAN HAS STDIO?
  I HAS A VAR
  GIMMEH VAR
  IZ VAR 0?
      YARLY
          BTW throw exception "HAX"
          OMG HAX
      NOWAI
          BTW We're good
          U SEEZ "FRACZ IZ " N (10/VAR) N " !"
      KTHX
  KTHXBYE
contributions/omg.txt · Last modified: 2007/06/16 08:08 by bugmaster
Recent changes RSS feed Creative Commons License Donate Driven by DokuWiki