minor
This commit is contained in:
@@ -45,7 +45,7 @@ module Virtual
|
|||||||
# otherwise it's a method without args and a send is issued.
|
# otherwise it's a method without args and a send is issued.
|
||||||
# whichever way this goes the result is stored in the return slot (as all compiles)
|
# whichever way this goes the result is stored in the return slot (as all compiles)
|
||||||
def self.compile_name expression , method
|
def self.compile_name expression , method
|
||||||
return Self.new( Mystery ) if expression.name == :self
|
return Self.new( Reference.new(method.for_class)) if expression.name == :self
|
||||||
name = Virtual.new_word expression.name.to_s
|
name = Virtual.new_word expression.name.to_s
|
||||||
if method.has_var(name)
|
if method.has_var(name)
|
||||||
# either an argument, so it's stored in message
|
# either an argument, so it's stored in message
|
||||||
|
@@ -25,7 +25,7 @@ HERE
|
|||||||
def test_puts_string
|
def test_puts_string
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
||||||
def foo()
|
def foo()
|
||||||
puts("Hello")
|
putstring("Hello")
|
||||||
end
|
end
|
||||||
foo()
|
foo()
|
||||||
HERE
|
HERE
|
||||||
|
Reference in New Issue
Block a user