######## test-object.az ########
Yamada works at school
Honda works at office
Kimura works at court
Person1 name: yamada, age:30
Person2 name: yamada, age:30
0
1
2
3
4
5
6
f(people) .. ["my name is Hayasaka Hiroko", "my name is Kikuchi Takao", "my name is Nagao Erika", "my name is Kikuchi Shigeo"]
isinstance(people, `number) .. [false, false, false, false]
isinstance(people, `string) .. [false, false, false, false]
isinstance(people, `object) .. [true, true, true, true]
isinstance(people, `Person) .. [true, true, true, true]
isinstance(people, `Student) .. [false, true, false, false]
isinstance(people, `Worker) .. [false, false, true, true]
isinstance(people, `Businessman) .. [false, false, false, true]
isinstance(people, `Teacher) .. [false, false, true, false]
people::work() .. ["do what?", "study", "work at school", "work at office"]
job:student, name:Hayasaka Hiroko, age:14
job:teacher, name:Hannda Yumiko, age:40
job:student, name:Honma Chise, age:13
job:student, name:Kikuchi Takao, age:15
job:teacher, name:Aoi Tatsuya, age:30
+created 0
 print   0
+created 1
-deleted 0
 print   1
+created 2
 print   2
-deleted 2
----
-deleted 1
+created 3
 print   3
+created 4
-deleted 3
 print   4
+created 5
 print   5
-deleted 5
----
-deleted 4
done
+created 6
+created 7
-deleted 6
+created 8
-deleted 7
----
test of class closure
f(x) = class { __init__() = { self.x = x } }
A5().x .. 5
A3().x .. 3
before sort
hoge is 15 years old.
aaaa is 18 years old.
saito is 19 years old.
tanaka is 20 years old.
sato is 17 years old.
sort by name
aaaa is 18 years old.
hoge is 15 years old.
saito is 19 years old.
sato is 17 years old.
tanaka is 20 years old.
sort by age
hoge is 15 years old.
sato is 17 years old.
aaaa is 18 years old.
saito is 19 years old.
tanaka is 20 years old.
obj.a + obj.b = 30
0.14112
1.41421
3.16228
--------
name: aaa, age:10
a.name = aaa
a.age = 10
aaa is 10 years old  pi=3.14159
bbbb is 10 years old  pi=3.14159
--------
Person constructor
My name is Yutaka
Person#func() cnt = 0
Person#func() cnt = 1
Person#func() cnt = 2
Person#func() cnt = 3
Person#func() cnt = 4
Person#func() cnt = 5
Person#func() cnt = 6
Person#func() cnt = 7
Person#func() cnt = 8
Person#func() cnt = 9
<A>
<B>
<C>
title=hogehoge
axis.title=x-title, axis_step=1, guide_step=10, min=0, max=100, samples=10
[0, 11.1111, 22.2222, 33.3333, 44.4444, 55.5556, 66.6667, 77.7778, 88.8889, 100]
axis.title=y-title, axis_step=1, guide_step=10, min=0, max=100, samples=10
[0, 11.1111, 22.2222, 33.3333, 44.4444, 55.5556, 66.6667, 77.7778, 88.8889, 100]
axis.title=z-title, axis_step=1, guide_step=10, min=0, max=100, samples=10
[0, 11.1111, 22.2222, 33.3333, 44.4444, 55.5556, 66.6667, 77.7778, 88.8889, 100]
--------
A.func(1)
A.func(2)
A.func(3)
A.func(4)
--------
1
hello
A.hoge = 1
A.hoge = 2
<<end of script>>
