|
|
1.1 moko 1: @main[]
2:
3: $a[ $.v1[1] $.v2[2] $.v3[3] ]
4: $b[^test::create[]]
5:
6: ^reflection:copy[$a;$b]
7:
8: Object b:
9: ^print[^hash::create[$b]]
10:
11: ^reflection:copy[$b;$a]
12:
13: Hash a:
14: ^print[$a]
15:
16: $string[$string]
17: ^try_catch{
18: ^reflection:copy[$string;$a]
19: }
20: ^try_catch{
1.2 ! moko 21: ^reflection:copy[$a;$string]
1.1 moko 22: }
23:
24: @print[hash]
25: ^hash.foreach[k;v]{$k = $v
26: }
27:
28: @try_catch[code]
29: ^try{
30: $code
31: }{
32: $exception.handled(true)
33: $exception.source
34: $exception.comment
35: }
36:
37: @CLASS
38: test
39:
40: @create[]
41: $v2[3]
42:
43: @SET_v3[value]
44: $another3[=$value=]