forked from russellallen/self
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoint3d.self
196 lines (139 loc) · 7.2 KB
/
point3d.self
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
'$Revision: 20.1 $'
'
Copyright 1992-2012 AUTHORS.
See the LICENSE file for license information.
'
'-- Module body'
bootstrap stub -> 'globals' -> 'modules' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot'
point3d = bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _Define: (
bootstrap remove: 'comment' From:
bootstrap remove: 'directory' From:
bootstrap remove: 'fileInTimeString' From:
bootstrap remove: 'postFileIn' From:
bootstrap remove: 'revision' From:
bootstrap remove: 'subpartNames' From:
globals modules init copy ) _AddSlots: bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _AddSlots: ( |
{} = 'Comment: the prototype module object, I am created by init.self.\x7fModuleInfo: Creator: globals modules point3d.
CopyDowns:
globals modules init. copy
SlotsToOmit: comment directory fileInTimeString postFileIn revision subpartNames.
'.
| ) .
} | )
bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot\x7fVisibility: public'
comment <- ''.
} | )
bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot\x7fVisibility: public'
directory <- 'ui3D'.
} | )
bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: InitializeToExpression: (_CurrentTimeString)\x7fVisibility: public'
fileInTimeString <- _CurrentTimeString.
} | )
bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot\x7fVisibility: public'
revision <- '$Revision: 20.1 $'.
} | )
bootstrap stub -> 'globals' -> 'modules' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot\x7fVisibility: public'
subpartNames <- ''.
} | )
bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot'
point3d = bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( |
{} = 'ModuleInfo: Creator: globals windowing xgl point3d.
'.
| ) .
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot'
point3d = bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( |
{} = 'ModuleInfo: Creator: traits windowing xgl point3d.
'.
| ) .
} | )
bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot'
parent* = bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> ().
} | )
bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot'
thisObjectPrints = bootstrap stub -> 'globals' -> 'system' -> 'true' -> ().
} | )
bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: InitializeToExpression: (0)\x7fVisibility: public'
x <- 0.
} | )
bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: InitializeToExpression: (0)\x7fVisibility: public'
y <- 0.
} | )
bootstrap stub -> 'globals' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: InitializeToExpression: (0)\x7fVisibility: public'
z <- 0.
} | )
bootstrap stub -> 'traits' -> 'graphics' -> 'point' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot\x7fVisibility: public'
@ z = ( |
| xgl point3d copyX: x Y: y Z: z).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: arithmetic\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
+ p = ( |
{} = 'ModuleInfo: Creator: traits windowing xgl point3d +.
'.
|
copyX: x + p x Y: y + p y Z: z + p z).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: arithmetic\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
- p = ( |
{} = 'ModuleInfo: Creator: traits windowing xgl point3d -.
'.
|
copyX: x - p x Y: y - p y Z: z - p z).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: coercions\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
asPointListProxy = ( |
{} = 'ModuleInfo: Creator: traits windowing xgl point3d asPointListProxy.
'.
|
(xgl ptF3d new) set_X: x Y: y Z: z).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: coercions\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
asPointProxy = ( |
|
((xgl pt new) pt_type: xgl ptType ptF3d)
pt_f3d: (xgl ptF3d new) set_X: x Y: y Z: z).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: copying\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
copyX: x Y: y Z: z = ( |
{} = 'ModuleInfo: Creator: traits windowing xgl point3d copyX:Y:Z:.
'.
|
((copy x: x) y: y) z: z).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'ModuleInfo: Module: point3d InitialContents: FollowSlot'
parent* = bootstrap stub -> 'traits' -> 'system' -> 'roots' -> 'clonable' -> ().
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: printing\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
printString = ( |
{} = 'ModuleInfo: Creator: traits windowing xgl point3d printString.
'.
|
x printString, separator, y printString, separator, z printString).
} | )
bootstrap stub -> 'traits' -> 'windowing' -> 'xgl' -> 'point3d' -> () _AddSlots: ( | {
'Category: printing\x7fModuleInfo: Module: point3d InitialContents: FollowSlot'
separator = '@'.
} | )
'-- Side effects'
globals modules point3d postFileIn