<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -107,7 +107,7 @@ class Pyasm
     bc 0x7d, n, 0x0
   end
   def call_func(arity)
-    dump_stack
+    (arity + 2).times { @stack.pop }
     stack_push Object.new, bc(0x83, arity, 0x0)
   end
   def make_func(arity)</diff>
      <filename>lib/unholy/pyasm.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ class Proc:
   def __init__(self, code):
     self.code = code
   def call(self, *args):
-    exec self.code in dict(zip(self.code.co_varnames, args))
+    return eval(self.code, dict(zip(self.code.co_varnames, args)))
 
 def proc(func):
   return Proc(func)</diff>
      <filename>python/Kernel.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 # 3
-a = proc { |x| print(x + 1) }
-a.call(2)
+a = proc { |x| x + 1 }
+puts a.call(2)</diff>
      <filename>tests/04block.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d5266bb310536bd7899e9291bf05ddf1b79827fc</id>
    </parent>
  </parents>
  <author>
    <name>_why</name>
    <email>why@whytheluckystiff.net</email>
  </author>
  <url>http://github.com/devyn/unholy/commit/3fa5d7dd9a996c915b4c7415283b493de0790ede</url>
  <id>3fa5d7dd9a996c915b4c7415283b493de0790ede</id>
  <committed-date>2008-05-15T07:47:56-07:00</committed-date>
  <authored-date>2008-05-15T07:47:56-07:00</authored-date>
  <message> * python/Kernel.py: use `eval` in order to get the block's return val.
 * lib/unholy/pyasm.rb: `call_func` doesn't completely dump the stack.</message>
  <tree>c372617279cf8e1a029abc397bd71c6411d35f81</tree>
  <committer>
    <name>_why</name>
    <email>why@whytheluckystiff.net</email>
  </committer>
</commit>
