
#-----------------------------------------------------------------------------------------------------------
require 'coffeenode-stacktrace'
log = console.log


############################################################################################################
# IN MY TOWN, F KNOWS G, AND G KNOWS H
#===========================================================================================================
f = ->
  try
    R = g()
  catch R # dammit! Rrresume next!1!!
    null
  log R

#-----------------------------------------------------------------------------------------------------------
g = ->
  R = "g says: " + h().toString()
  return R


############################################################################################################
# MEANWHILE, IN A DISTANT GALAXY...
#===========================================================================================================
h = ->
  return 42 #+ throw new Error "h says: I can't do that, Dave"


############################################################################################################
f()

