.sub _main @MAIN print "starting\n" # load_bytecode is actually clever enough to load # the (uncompiled) imc file as well (cool) load_bytecode "MyClass.imc" # but loading it twice is bad load_bytecode "MyClass.imc" print "finished\n" .end #### .namespace ['MyClass'] .sub _initialize prototyped, @LOAD .local pmc tmpl_class print "registering class\n" newclass tmpl_class, 'MyClass' .end