lib/nydp/closure.rb in nydp-0.4.3 vs lib/nydp/closure.rb in nydp-0.4.5

- old
+ new

@@ -2,12 +2,9 @@ class Closure attr_accessor :ifn, :context def initialize ifn, context @ifn, @context = ifn, context - # TODO don't create a closure where it's not needed (zero_arg functions), use parent context instead - # TODO see SymbolLookup for how to ensure variable references stay on track - # TODO see InterpretedFunction for where to not instantiate new LexicalContext end def invoke_1 vm ifn.invoke_1 vm, context end