
callEvent (thisAction, thisObject);
Calls the function specified inside the thisObject objectType definition by the line "event thisAction". Both thisAction and thisObject must be variables of type objectType.
TRUE if a function was called. FALSE if no event was found.
objectType ego () {
}
objectType lookAt () {
}
objectType poster ("poster") {
   event lookAt {
      say (ego, "I'm looking at the poster.");
   }
}
sub init () {
   callEvent (poster, lookAt);
      # Returns FALSE
   callEvent (lookAt, poster);
      # Calls function and returns TRUE
}
SLUDGE and this SLUDGE documentation are copyright Hungry Software and contributors 2000-2012