WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 2e275146 authored by Stefan Marr's avatar Stefan Marr
Browse files

Need to import std_print functions since they are not class methods anymore

Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 4cb924f2
......@@ -12,7 +12,8 @@ class Shell(object):
counter = 0
it = self._universe.nilObject
self._universe.std_println("SOM Shell. Type \"quit\" to exit.\n");
from som.vm.universe import std_println
std_println("SOM Shell. Type \"quit\" to exit.\n");
# Create a fake bootstrap frame
current_frame = self._interpreter.push_new_frame(self._bootstrap_method)
......@@ -138,8 +138,9 @@ class Class(Object):
def add_instance_primitive(self, value):
if self.add_instance_invokable(value):
self._universe.std_print("Warning: Primitive " + value.get_signature().get_string())
self._universe.std_println(" is not in class definition for class " + self.get_name().get_string())
from som.vm.universe import std_print, std_println
std_print("Warning: Primitive " + value.get_signature().get_string())
std_println(" is not in class definition for class " + self.get_name().get_string())
def get_instance_field_name(self, index):
# Get the name of the instance field with the given index
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment