crystal says Hello.

This commit is contained in:
Torsten Ruger
2014-05-06 21:36:28 +03:00
parent fa123e0354
commit 4135c4d2dc
14 changed files with 134 additions and 114 deletions

View File

@ -2,7 +2,7 @@ module Core
class Kernel
#there are no Kernel instances, only class methods.
# We use this module syntax to avoid the (ugly) self.
# We use this module syntax to avoid the (ugly) self (also eases searching).
module ClassMethods
def main_start
#TODO extract args into array of strings
@ -18,9 +18,9 @@ module Core
def function_exit f_name
Vm::Machine.instance.function_exit f_name
end
def self.puts string
def putstring
# should unwrap from string to char*
Vm::Machine.instance.puts string
Vm::Machine.instance.putstring
end
end