<script> Constants:
00: "GetVariable"
01: "beforeDefined()"
02: "afterDefined()"
03: "afterAssigned()"
04: "otherSlot()"
05: "otherModule()"
06: "Has"
07: "variable(_,_)"
08: "module(_)"
09: "a"
10: "changed"
11: "b"
12: "./test/api/get_variable_module"
13: "Variable"
14: "NotAVariable"
15: "./test/api/get_variable"
16: "Fake"
17: "not a module"
<script> Code:
00 (ln 1): ImportModule("./get_variable_module")
01 (ln 1): Pop
02 (ln 3): Constant(0: "GetVariable")
03 (ln 3): Load(Module, Class("Object"))
04 (ln 3): Class(0 fields)
05 (ln 3): Store(Module)
06 (ln 3): Pop
07 (ln 4): Constant(1: "beforeDefined()")
08 (ln 4): Load(Module, Null)
09 (ln 4): Method(static, beforeDefined())
10 (ln 5): Constant(2: "afterDefined()")
11 (ln 5): Load(Module, Null)
12 (ln 5): Method(static, afterDefined())
13 (ln 6): Constant(3: "afterAssigned()")
14 (ln 6): Load(Module, Null)
15 (ln 6): Method(static, afterAssigned())
16 (ln 7): Constant(4: "otherSlot()")
17 (ln 7): Load(Module, Null)
18 (ln 7): Method(static, otherSlot())
19 (ln 8): Constant(5: "otherModule()")
20 (ln 8): Load(Module, Null)
21 (ln 8): Method(static, otherModule())
22 (ln 11): Constant(6: "Has")
23 (ln 11): Load(Module, Class("Object"))
24 (ln 11): Class(0 fields)
25 (ln 11): Store(Module)
26 (ln 11): Pop
27 (ln 12): Constant(7: "variable(_,_)")
28 (ln 12): Load(Module, Null)
29 (ln 12): Method(static, variable(_,_))
30 (ln 13): Constant(8: "module(_)")
31 (ln 13): Load(Module, Null)
32 (ln 13): Method(static, module(_))
33 (ln 16): Load(Module, Class("System"))
34 (ln 16): Load(Module, Null)
35 (ln 16): Call(beforeDefined())
36 (ln 16): Call(print(_))
37 (ln 16): Pop
38 (ln 18): Constant(9: "a")
39 (ln 18): Store(Module)
40 (ln 18): Pop
41 (ln 20): Load(Module, Class("System"))
42 (ln 20): Load(Module, Null)
43 (ln 20): Call(afterDefined())
44 (ln 20): Call(print(_))
45 (ln 20): Pop
46 (ln 22): Constant(10: "changed")
47 (ln 22): Store(Module)
48 (ln 22): Pop
49 (ln 24): Load(Module, Class("System"))
50 (ln 24): Load(Module, Null)
51 (ln 24): Call(afterAssigned())
52 (ln 24): Call(print(_))
53 (ln 24): Pop
54 (ln 26): Constant(11: "b")
55 (ln 26): Store(Module)
56 (ln 26): Pop
57 (ln 27): Load(Module, Class("System"))
58 (ln 27): Load(Module, Null)
59 (ln 27): Call(otherSlot())
60 (ln 27): Call(print(_))
61 (ln 27): Pop
62 (ln 29): Load(Module, Class("System"))
63 (ln 29): Load(Module, Null)
64 (ln 29): Call(otherModule())
65 (ln 29): Call(print(_))
66 (ln 29): Pop
67 (ln 32): Load(Module, Class("System"))
68 (ln 32): Load(Module, Null)
69 (ln 32): Constant(12: "./test/api/get_variable_module")
70 (ln 32): Constant(13: "Variable")
71 (ln 32): Call(variable(_,_))
72 (ln 32): Call(print(_))
73 (ln 32): Pop
74 (ln 33): Load(Module, Class("System"))
75 (ln 33): Load(Module, Null)
76 (ln 33): Constant(12: "./test/api/get_variable_module")
77 (ln 33): Constant(14: "NotAVariable")
78 (ln 33): Call(variable(_,_))
79 (ln 33): Call(print(_))
80 (ln 33): Pop
81 (ln 34): Load(Module, Class("System"))
82 (ln 34): Load(Module, Null)
83 (ln 34): Constant(15: "./test/api/get_variable")
84 (ln 34): Constant(6: "Has")
85 (ln 34): Call(variable(_,_))
86 (ln 34): Call(print(_))
87 (ln 34): Pop
88 (ln 35): Load(Module, Class("System"))
89 (ln 35): Load(Module, Null)
90 (ln 35): Constant(15: "./test/api/get_variable")
91 (ln 35): Constant(16: "Fake")
92 (ln 35): Call(variable(_,_))
93 (ln 35): Call(print(_))
94 (ln 35): Pop
95 (ln 37): Load(Module, Class("System"))
96 (ln 37): Load(Module, Null)
97 (ln 37): Constant(12: "./test/api/get_variable_module")
98 (ln 37): Call(module(_))
99 (ln 37): Call(print(_))
100 (ln 37): Pop
101 (ln 38): Load(Module, Class("System"))
102 (ln 38): Load(Module, Null)
103 (ln 38): Constant(15: "./test/api/get_variable")
104 (ln 38): Call(module(_))
105 (ln 38): Call(print(_))
106 (ln 38): Pop
107 (ln 39): Load(Module, Class("System"))
108 (ln 39): Load(Module, Null)
109 (ln 39): Constant(17: "not a module")
110 (ln 39): Call(module(_))
111 (ln 39): Call(print(_))
112 (ln 39): Pop
113 (ln 39): EndModule
114 (ln 39): Return
115 (ln 39): End
