Commit 9f63ee0c by Stefan Marr

Fix #dnu implementation to not include self in the arg array

Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent 9facfcc8
Showing with 3 additions and 2 deletions
......@@ -24,7 +24,7 @@ class AbstractObject(object):
universe = interpreter.get_universe()
# Compute the number of arguments
number_of_arguments = selector.get_number_of_signature_arguments()
number_of_arguments = selector.get_number_of_signature_arguments() - 1 ## do ignore self
# Allocate an array with enough room to hold all arguments
arguments_array = universe.new_array_with_length(number_of_arguments)
......@@ -35,7 +35,8 @@ class AbstractObject(object):
while i >= 0:
arguments_array.set_indexable_field(i, frame.pop())
i -= 1
frame.pop() # pop self from stack
args = [selector, arguments_array]
self.send(frame, "doesNotUnderstand:arguments:", args, universe, interpreter)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!