move machine to module level

makes for shorter, more concise, access
also remove one more bug possibility
(reinitiation)
This commit is contained in:
Torsten Ruger
2015-06-01 08:40:17 +03:00
parent 336e6c18de
commit 5726d2c181
21 changed files with 35 additions and 30 deletions

View File

@ -23,7 +23,7 @@ module Builtin
var_name = get_function.args.first
return_to = get_function.return_type
index_function = ::Virtual::Machine.instance.space.get_class_by_name(:Object).resolve_method(:index_of)
index_function = ::Virtual.machine.space.get_class_by_name(:Object).resolve_method(:index_of)
# get_function.push( [me] )
# index = get_function.call( index_function )