update inbox list

This commit is contained in:
manhlab
2021-04-07 19:25:18 -04:00
parent fda7245f7c
commit 436de2efd6
8576 changed files with 1013325 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
class Person
def initialize(@name : String)
end
def greet
puts "Hi, I'm #{@name}"
end
end
class Employee < Person
end
employee = Employee.new "John"
employee.greet # => "Hi, I'm John"
employee.is_a?(Person) # => true
@[Link("m")]
lib C
# In C: double cos(double x)
fun cos(value : Float64) : Float64
end
C.cos(1.5_f64) # => 0.0707372
s = uninitialized String
s = <<-'STR'
\hello\world
\hello\world
STR