Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mu
x-RPySOM
Commits
1b856e76
Commit
1b856e76
authored
Sep 18, 2013
by
Stefan Marr
Browse files
Fixed mixed up parameter order, and reference to wrong object
Signed-off-by:
Stefan Marr
<
git@stefan-marr.de
>
parent
2406bf7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/som/vm/universe.py
View file @
1b856e76
...
...
@@ -206,7 +206,7 @@ class Universe(object):
self
.
set_global
(
self
.
symbol_for
(
"nil"
),
self
.
_nilObject
)
self
.
set_global
(
self
.
symbol_for
(
"true"
),
self
.
_trueObject
)
self
.
set_global
(
self
.
symbol_for
(
"false"
),
self
.
_falseObject
)
self
.
set_global
(
self
.
symbol_for
(
"system"
),
self
.
_
system
O
bject
)
self
.
set_global
(
self
.
symbol_for
(
"system"
),
system
_o
bject
)
self
.
set_global
(
self
.
symbol_for
(
"System"
),
self
.
_systemClass
)
self
.
set_global
(
self
.
symbol_for
(
"Block"
),
self
.
_blockClass
)
return
system_object
...
...
@@ -314,7 +314,7 @@ class Universe(object):
def
new_instance
(
self
,
instance_class
):
# Allocate a new instance and set its class to be the given class
result
=
Object
(
instance_class
.
get_number_of_instance_fields
()
,
self
.
_nilObject
)
result
=
Object
(
self
.
_nilObject
,
instance_class
.
get_number_of_instance_fields
())
result
.
set_class
(
instance_class
)
# Return the freshly allocated instance
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment