author | Claus Gittinger <cg@exept.de> |
Mon, 10 Feb 1997 13:20:50 +0100 | |
changeset 2375 | 7eb1b35edc33 |
parent 2366 | bbe8c60d7c9f |
child 2531 | 1e22ac3610a4 |
permissions | -rw-r--r-- |
1 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1991 by Claus Gittinger |
154 | 3 |
All Rights Reserved |
1 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
620 | 13 |
nil subclass:#Autoload |
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
14 |
instanceVariableNames:'' |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
15 |
classVariableNames:'LazyLoading AutoloadFailedSignal LoadedClasses' |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
16 |
poolDictionaries:'' |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
17 |
category:'Kernel-Classes' |
1 | 18 |
! |
19 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
20 |
!Autoload class methodsFor:'documentation'! |
68 | 21 |
|
88 | 22 |
copyright |
23 |
" |
|
24 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
154 | 25 |
All Rights Reserved |
88 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
68 | 36 |
documentation |
37 |
" |
|
38 |
In memory limited systems (as my 8Mb 386 is) all seldom-used classes are made |
|
39 |
subclasses of this class. Autoload catches all messages and |
|
40 |
files-In the corresponding code when first used. Then the cought message |
|
41 |
is resent to the (now existing) class. |
|
42 |
||
43 |
Late addition: above comment is no longer true - I have made now almost |
|
44 |
all Demos & Goodies be autoloaded ... even for big systems. |
|
45 |
||
1278 | 46 |
[class variables:] |
92 | 47 |
|
1278 | 48 |
LazyLoading <Boolean> if true, the loaded classes |
49 |
methods will NOT be compiled at |
|
50 |
autoload time, but instead when |
|
51 |
first called. This allows for a |
|
52 |
faster load. However, expect short |
|
53 |
pauses later when the methods are |
|
54 |
first executed. |
|
126 | 55 |
|
1278 | 56 |
AutoloadFailedSignal <Signal> signal raised if an autoloaded |
57 |
classes source is not available. |
|
922 | 58 |
|
1278 | 59 |
LoadedClasses <Collection> set of classes that heve been |
60 |
autoloaded (for later unload) |
|
1292 | 61 |
|
62 |
[author:] |
|
63 |
Claus Gittinger |
|
68 | 64 |
" |
65 |
! ! |
|
66 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
67 |
!Autoload class methodsFor:'initialization'! |
126 | 68 |
|
69 |
initialize |
|
2223 | 70 |
"initialize the failure-signal" |
71 |
||
126 | 72 |
AutoloadFailedSignal isNil ifTrue:[ |
2223 | 73 |
AutoloadFailedSignal := Object errorSignal newSignalMayProceed:true. |
74 |
AutoloadFailedSignal nameClass:self message:#autoloadFailedSignal. |
|
75 |
AutoloadFailedSignal notifierString:'autoload failed '. |
|
197 | 76 |
|
2223 | 77 |
self setSuperclass:nil. |
78 |
ObjectMemory flushCaches. |
|
126 | 79 |
] |
2223 | 80 |
|
81 |
"Modified: 22.1.1997 / 18:35:44 / cg" |
|
126 | 82 |
! ! |
83 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
84 |
!Autoload class methodsFor:'Signal constants'! |
126 | 85 |
|
86 |
autoloadFailedSignal |
|
87 |
"return the signal raised when an autoload fails" |
|
88 |
||
89 |
^ AutoloadFailedSignal |
|
90 |
! ! |
|
91 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
92 |
!Autoload class methodsFor:'adding/removing autoloaded classes'! |
359 | 93 |
|
216 | 94 |
addClass:aClassName |
1277 | 95 |
"given a name, install a corresponding autoload class stub for it" |
96 |
||
216 | 97 |
self addClass:aClassName inCategory:'autoloaded-Classes' |
98 |
||
99 |
" |
|
100 |
Autoload addClass:'Clock' |
|
101 |
" |
|
1277 | 102 |
|
103 |
"Modified: 24.4.1996 / 19:54:16 / cg" |
|
216 | 104 |
! |
105 |
||
106 |
addClass:aClassName inCategory:aCategory |
|
1277 | 107 |
"given a name, install a corresponding autoload class stub for it" |
108 |
||
216 | 109 |
|nameSymbol| |
110 |
||
111 |
nameSymbol := aClassName asSymbol. |
|
112 |
(Smalltalk at:nameSymbol) isNil ifTrue:[ |
|
1277 | 113 |
Autoload subclass:nameSymbol |
114 |
instanceVariableNames:'' |
|
115 |
classVariableNames:'' |
|
116 |
poolDictionaries:'' |
|
117 |
category:aCategory. |
|
216 | 118 |
] |
119 |
" |
|
120 |
Autoload addClass:'Clock' inCategory:'autoloaded-Demos' |
|
121 |
" |
|
1277 | 122 |
|
123 |
"Modified: 24.4.1996 / 19:54:20 / cg" |
|
620 | 124 |
! |
125 |
||
126 |
removeClass:aClass |
|
1277 | 127 |
"remove a class from the list of loaded classes" |
128 |
||
620 | 129 |
LoadedClasses remove:aClass ifAbsent:[] |
1277 | 130 |
|
131 |
"Modified: 24.4.1996 / 19:54:35 / cg" |
|
620 | 132 |
! ! |
133 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
134 |
!Autoload class methodsFor:'fileout'! |
620 | 135 |
|
2067 | 136 |
basicFileOutDefinitionOn:aStream withNameSpace:forceNameSpace |
620 | 137 |
"print an expression to define myself on aStream. |
138 |
Since autoloaded classes dont know their real definition, simply |
|
139 |
output some comment string making things clear in the browser." |
|
140 |
||
709
c31cbd5e5323
more info for autoloaded classes (for browsers definition text)
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
141 |
|myName fileName nm mgr classFileName packageDir| |
620 | 142 |
|
2067 | 143 |
(self == Autoload) ifTrue:[^ super basicFileOutDefinitionOn:aStream withNameSpace:forceNameSpace]. |
620 | 144 |
|
145 |
myName := self name. |
|
1952
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
146 |
aStream nextPutAll:'"' ; nextPutLine:'Notice from Autoload:'; cr; |
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
147 |
spaces:4; nextPutLine:myName , ' is not yet loaded.'; cr. |
620 | 148 |
aStream nextPutAll:'to load, execute: '. |
1952
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
149 |
aStream cr; cr; spaces:4; nextPutLine:myName , ' autoload'. |
2019 | 150 |
aStream cr; nextPutLine:'or use the browsers load-function (in the class menu).'. |
620 | 151 |
" |
152 |
the following is simply informative ... |
|
153 |
actually, its a hack & kludge - there ought to be a method for this |
|
154 |
in Smalltalk |
|
155 |
(knowing the details of loading here is no good coding style) |
|
156 |
" |
|
157 |
fileName := Smalltalk fileNameForClass:myName. |
|
158 |
(ObjectFileLoader notNil and:[Smalltalk loadBinaries]) ifTrue:[ |
|
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
159 |
(nm := Smalltalk libraryFileNameOfClass:myName) notNil ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
160 |
nm := nm , ' (a classLibrary, possibly including more classes)' |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
161 |
] ifFalse:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
162 |
nm := Smalltalk getBinaryFileName:(fileName , '.so'). |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
163 |
nm isNil ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
164 |
nm := Smalltalk getBinaryFileName:(fileName , '.o') |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
165 |
]. |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
166 |
nm notNil ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
167 |
nm := nm , ' (a classBinary)' |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
168 |
] |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
169 |
]. |
620 | 170 |
]. |
171 |
nm isNil ifTrue:[ |
|
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
172 |
nm := Smalltalk getFileInFileName:(fileName , '.st'). |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
173 |
nm isNil ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
174 |
nm := Smalltalk getSourceFileName:(fileName , '.st'). |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
175 |
]. |
620 | 176 |
]. |
177 |
nm notNil ifTrue:[ |
|
1952
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
178 |
aStream cr; nextPutLine:'When accessed, ' , myName , ' will automatically be loaded'. |
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
179 |
aStream nextPutLine:'from: '; spaces:4; nextPutAll:nm. |
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
180 |
nm asFilename isSymbolicLink ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
181 |
aStream cr; cr. |
1952
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
182 |
aStream nextPutLine:'which is a link to: '; spaces:4; |
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
183 |
nextPutAll:(nm asFilename linkInfo path). |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
184 |
] |
620 | 185 |
] ifFalse:[ |
1952
18cfc11b49fa
use #nextPutLine instead of #nextPutAll; #cr
Claus Gittinger <cg@exept.de>
parents:
1862
diff
changeset
|
186 |
aStream cr; nextPutLine:'There is currently no file to load ' , myName , ' from.'; cr. |
709
c31cbd5e5323
more info for autoloaded classes (for browsers definition text)
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
187 |
|
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
188 |
(mgr := Smalltalk at:#SourceCodeManager) notNil ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
189 |
classFileName := Smalltalk fileNameForClass:myName. |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
190 |
packageDir := Smalltalk sourceDirectoryNameOfClass:myName. |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
191 |
]. |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
192 |
(classFileName notNil and:[packageDir notNil]) ifTrue:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
193 |
aStream nextPutAll:'When accessed, I''ll ask the sourceCodeManager to load the code |
709
c31cbd5e5323
more info for autoloaded classes (for browsers definition text)
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
194 |
from "' , classFileName , '.st" in the "' , packageDir , '" package.'. |
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
195 |
] ifFalse:[ |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
196 |
aStream nextPutAll:'When accessed, an error will be reported.'. |
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
197 |
] |
620 | 198 |
]. |
199 |
aStream cr; nextPutAll:'"'. |
|
709
c31cbd5e5323
more info for autoloaded classes (for browsers definition text)
Claus Gittinger <cg@exept.de>
parents:
661
diff
changeset
|
200 |
|
2019 | 201 |
"Modified: 30.12.1996 / 17:25:15 / cg" |
2067 | 202 |
"Created: 5.1.1997 / 14:31:33 / cg" |
620 | 203 |
! ! |
204 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
205 |
!Autoload class methodsFor:'lazy compilation'! |
620 | 206 |
|
207 |
compileLazy |
|
208 |
"return the lazy loading flag - if on, fileIn is much faster, |
|
209 |
but pauses are to be expected later, since methods are compiled |
|
210 |
when first executed." |
|
211 |
||
212 |
^ LazyLoading |
|
213 |
! |
|
214 |
||
215 |
compileLazy:aBoolean |
|
216 |
"turn on/off lazy loading - if on, fileIn is much faster, |
|
217 |
but pauses are to be expected later, since methods are compiled |
|
218 |
when first executed. |
|
219 |
If you like it, add a line to your startup file." |
|
220 |
||
221 |
LazyLoading := aBoolean |
|
216 | 222 |
! ! |
223 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
224 |
!Autoload class methodsFor:'loading'! |
1 | 225 |
|
226 |
autoload |
|
227 |
"use this to force loading |
|
2062 | 228 |
- it is defined a noop in all non-autoloading classes" |
1 | 229 |
|
2061 | 230 |
|mySelf myName newClass oldMeta project prevMode package| |
1 | 231 |
|
232 |
mySelf := self. |
|
164 | 233 |
myName := self name asSymbol. |
1 | 234 |
|
235 |
"remove myself - to avoid recompilation" |
|
164 | 236 |
Smalltalk at:myName put:nil. |
1 | 237 |
|
2 | 238 |
"load it" |
1566 | 239 |
(Object infoPrinting and:[Smalltalk silentLoading ~~ true]) ifTrue:[ |
1564
f3f9736bd0fa
suppress load messages, if infoPrinting is turned off
Claus Gittinger <cg@exept.de>
parents:
1438
diff
changeset
|
240 |
Transcript showCR:('autoloading ', myName , ' ...'); endEntry. |
f3f9736bd0fa
suppress load messages, if infoPrinting is turned off
Claus Gittinger <cg@exept.de>
parents:
1438
diff
changeset
|
241 |
]. |
1 | 242 |
|
860
b3ffea40999a
use new becomeSameAs: to migrate to new class.
Claus Gittinger <cg@exept.de>
parents:
789
diff
changeset
|
243 |
[ |
1694
29791fde790e
autoload classes keep source reference
Claus Gittinger <cg@exept.de>
parents:
1674
diff
changeset
|
244 |
prevMode := ClassCategoryReader sourceMode. |
1720 | 245 |
"/ |
246 |
"/ no- do not do this; it may lead to trouble ... |
|
247 |
"/ ClassCategoryReader sourceMode:#reference. |
|
1694
29791fde790e
autoload classes keep source reference
Claus Gittinger <cg@exept.de>
parents:
1674
diff
changeset
|
248 |
|
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
249 |
"/ |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
250 |
"/ in order to not get a package of private (or whatever), |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
251 |
"/ temporarily set the currentProject to nil. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
252 |
"/ we will later set the classes package to something useful |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
253 |
"/ |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
254 |
Project notNil ifTrue:[ |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
255 |
project := Project current. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
256 |
Project setProject:nil. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
257 |
]. |
2375
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
258 |
|
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
259 |
Class nameSpaceQuerySignal answer:Smalltalk |
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
260 |
do:[ |
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
261 |
Smalltalk fileInClass:myName initialize:false lazy:LazyLoading. |
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
262 |
]. |
1694
29791fde790e
autoload classes keep source reference
Claus Gittinger <cg@exept.de>
parents:
1674
diff
changeset
|
263 |
ClassCategoryReader sourceMode:prevMode. |
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
264 |
project notNil ifTrue:[ |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
265 |
Project setProject:project. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
266 |
]. |
860
b3ffea40999a
use new becomeSameAs: to migrate to new class.
Claus Gittinger <cg@exept.de>
parents:
789
diff
changeset
|
267 |
] valueOnUnwindDo:[ |
1694
29791fde790e
autoload classes keep source reference
Claus Gittinger <cg@exept.de>
parents:
1674
diff
changeset
|
268 |
ClassCategoryReader sourceMode:prevMode. |
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
269 |
project notNil ifTrue:[ |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
270 |
Project setProject:project. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
271 |
]. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
272 |
Smalltalk at:myName put:mySelf. |
860
b3ffea40999a
use new becomeSameAs: to migrate to new class.
Claus Gittinger <cg@exept.de>
parents:
789
diff
changeset
|
273 |
]. |
1 | 274 |
|
275 |
"did it work ?" |
|
164 | 276 |
newClass := Smalltalk at:myName. |
277 |
Smalltalk at:myName put:mySelf. "will be undone by become:" |
|
1 | 278 |
|
138 | 279 |
"no - report the error" |
1 | 280 |
newClass isNil ifTrue:[ |
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
281 |
" |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
282 |
this signal is raised, if an autoloaded class |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
283 |
cannot be loaded. Usually, this happends when |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
284 |
some sourcefile is missing, not readable or if |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
285 |
an entry is missing in the abbreviation file. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
286 |
Check for a readable file named <myName>.st |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
287 |
in the 'source' directory and (if its a long fileName) |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
288 |
for a corresponding entry in the abbreviation file |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
289 |
'include/abbrev.stc'. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
290 |
Finally, your searchpath could be set wrong - |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
291 |
both 'source' and 'include' directories must be found in |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
292 |
one of the directories named in systemPath. |
154 | 293 |
|
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
294 |
In the debugger, press 'abort' to continue execution. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
295 |
" |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
296 |
AutoloadFailedSignal |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
297 |
raiseRequestWith:self |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
298 |
errorString:('autoload of ' , myName , ' failed'). |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
299 |
^ nil |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
300 |
]. |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
301 |
|
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
302 |
"/ |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
303 |
"/ autoloaded classes get their package from the revision (if present) |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
304 |
"/ this only happens with autoloaded sourceFiles which have no package |
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
305 |
"/ info encoded. (binary classes have it) |
2057
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
306 |
"/ If there is no such information, give it my package (if I have one) |
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
307 |
"/ |
2057
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
308 |
newClass setPackageFromRevision. |
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
309 |
(newClass package isNil |
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
310 |
or:[newClass package = 'no package']) ifTrue:[ |
2112
a5cff76f7404
only #initialize if the class itself implements it
Claus Gittinger <cg@exept.de>
parents:
2067
diff
changeset
|
311 |
package := self package. |
2057
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
312 |
(package notNil and:[package ~= 'no package']) |
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
313 |
ifTrue:[ |
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
314 |
newClass setPackage:package. |
35003ed4b817
care for the package ID when autoloading
Claus Gittinger <cg@exept.de>
parents:
2019
diff
changeset
|
315 |
]. |
1 | 316 |
]. |
317 |
||
216 | 318 |
LoadedClasses isNil ifTrue:[ |
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
319 |
LoadedClasses := IdentitySet new. |
216 | 320 |
]. |
921
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
321 |
LoadedClasses add:newClass. |
216 | 322 |
|
154 | 323 |
"wow - it worked. now the big trick ..." |
1 | 324 |
|
921
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
325 |
"/ newClass class setSoleInstance:self. "/ will be undone by become ... |
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
326 |
oldMeta := self class. |
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
327 |
|
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
328 |
self setName:(self name , ' (auto)'). |
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
329 |
self class setName:(self class name , ' (auto)'). |
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
330 |
|
860
b3ffea40999a
use new becomeSameAs: to migrate to new class.
Claus Gittinger <cg@exept.de>
parents:
789
diff
changeset
|
331 |
self becomeSameAs:newClass. |
921
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
332 |
oldMeta becomeSameAs:newClass class. |
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
333 |
|
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
334 |
ObjectMemory flushCaches. |
216 | 335 |
LoadedClasses rehash. |
921
4db7603f9506
rename myself (just in case) & flush caches after loading
Claus Gittinger <cg@exept.de>
parents:
886
diff
changeset
|
336 |
|
2112
a5cff76f7404
only #initialize if the class itself implements it
Claus Gittinger <cg@exept.de>
parents:
2067
diff
changeset
|
337 |
(newClass class implements:#initialize) ifTrue:[ |
1148 | 338 |
newClass initialize. |
339 |
]. |
|
886 | 340 |
newClass postAutoload. |
341 |
^ newClass |
|
938
a23bc7f62ed1
set package info when autoloading
Claus Gittinger <cg@exept.de>
parents:
922
diff
changeset
|
342 |
|
2375
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
343 |
"Modified: 7.2.1997 / 13:34:19 / cg" |
1 | 344 |
! ! |
345 |
||
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
346 |
!Autoload class methodsFor:'message catching'! |
1 | 347 |
|
620 | 348 |
basicNew |
1277 | 349 |
"catch basicNew - load the class and send it to the real one" |
620 | 350 |
|
351 |
^ self doesNotUnderstand:(Message selector:#basicNew) |
|
1277 | 352 |
|
353 |
"Modified: 24.4.1996 / 19:53:10 / cg" |
|
620 | 354 |
! |
355 |
||
356 |
basicNew:arg |
|
1277 | 357 |
"catch basicNew: - load the class and send it to the real one" |
620 | 358 |
|
359 |
^ self doesNotUnderstand:(Message selector:#basicNew: with:arg) |
|
1277 | 360 |
|
361 |
"Modified: 24.4.1996 / 19:53:16 / cg" |
|
620 | 362 |
! |
363 |
||
364 |
comment |
|
365 |
"return the classes comment. |
|
366 |
Autoloaded classes have no comment; but I myself have one" |
|
367 |
||
368 |
(self == Autoload) ifTrue:[^ super comment]. |
|
369 |
^ 'not yet loaded' |
|
370 |
! |
|
371 |
||
1 | 372 |
doesNotUnderstand:aMessage |
1277 | 373 |
"cought a message; load the class and retry the message" |
1 | 374 |
|
375 |
|newClass| |
|
376 |
||
164 | 377 |
self ~~ Autoload ifTrue:[ |
1277 | 378 |
newClass := self autoload. |
379 |
newClass notNil ifTrue:[ |
|
380 |
^ newClass perform:(aMessage selector) |
|
381 |
withArguments:(aMessage arguments) |
|
382 |
] |
|
1 | 383 |
]. |
789
155eca125ef0
return value from doesNotUnderstand (so handler can return a value)
Claus Gittinger <cg@exept.de>
parents:
739
diff
changeset
|
384 |
^ super doesNotUnderstand:aMessage |
1277 | 385 |
|
386 |
"Modified: 24.4.1996 / 19:53:27 / cg" |
|
1 | 387 |
! |
388 |
||
389 |
new |
|
1277 | 390 |
"catch new - load the class and send it to the real one" |
1 | 391 |
|
392 |
^ self doesNotUnderstand:(Message selector:#new) |
|
1277 | 393 |
|
394 |
"Modified: 24.4.1996 / 19:53:30 / cg" |
|
1 | 395 |
! |
396 |
||
397 |
new:arg |
|
1277 | 398 |
"catch new: - load the class and send it to the real one" |
1 | 399 |
|
400 |
^ self doesNotUnderstand:(Message selector:#new: with:arg) |
|
1277 | 401 |
|
402 |
"Modified: 24.4.1996 / 19:53:32 / cg" |
|
1 | 403 |
! |
404 |
||
1438
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
405 |
readFrom:aStream |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
406 |
"catch - load the class and send it to the real one" |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
407 |
|
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
408 |
^ self doesNotUnderstand:(Message selector:#readFrom: with:aStream) |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
409 |
|
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
410 |
"Created: 22.5.1996 / 23:44:23 / stefan" |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
411 |
! |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
412 |
|
1437 | 413 |
readFrom:aStream onError:exceptionBlock |
414 |
"catch - load the class and send it to the real one" |
|
415 |
||
416 |
^ self doesNotUnderstand:(Message selector:#readFrom:onError: with:aStream with:exceptionBlock) |
|
417 |
||
418 |
"Created: 22.5.1996 / 23:03:39 / stefan" |
|
419 |
! |
|
420 |
||
1438
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
421 |
readFromString:aString |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
422 |
"catch - load the class and send it to the real one" |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
423 |
|
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
424 |
^ self doesNotUnderstand:(Message selector:#readFromString: with:aString) |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
425 |
|
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
426 |
"Created: 22.5.1996 / 23:46:15 / stefan" |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
427 |
! |
76fdecf85f9e
Catch readFrom: and readFromString: too.
Stefan Vogel <sv@exept.de>
parents:
1437
diff
changeset
|
428 |
|
1437 | 429 |
readFromString:aString onError:exceptionBlock |
430 |
"catch - load the class and send it to the real one" |
|
431 |
||
432 |
^ self doesNotUnderstand:(Message selector:#readFromString:onError: with:aString with:exceptionBlock) |
|
433 |
||
434 |
"Created: 22.5.1996 / 23:04:49 / stefan" |
|
435 |
! |
|
436 |
||
2366
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
437 |
subclass:nameSymbol instanceVariableNames:instVarNames classVariableNames:cVarNames poolDictionaries:pools category:cat |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
438 |
"catch subclass creation - this forces missing superclasses to be |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
439 |
loaded first" |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
440 |
|
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
441 |
^ self |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
442 |
subclass:nameSymbol |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
443 |
instanceVariableNames:instVarNames |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
444 |
classVariableNames:cVarNames |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
445 |
poolDictionaries:pools |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
446 |
category:cat |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
447 |
inEnvironment:(Class nameSpaceQuerySignal raise) |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
448 |
|
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
449 |
"Modified: 8.2.1997 / 20:06:22 / cg" |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
450 |
! |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
451 |
|
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
452 |
subclass:nameSymbol instanceVariableNames:instVarNames classVariableNames:cVarNames poolDictionaries:poolDicts category:cat inEnvironment:aNameSpace |
2 | 453 |
"catch subclass creation - this forces missing superclasses to be |
454 |
loaded first" |
|
455 |
||
68 | 456 |
|newClass sel args| |
1 | 457 |
|
2 | 458 |
"take care: subclassing Autoload must still be possible" |
1 | 459 |
(self == Autoload) ifTrue:[ |
2366
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
460 |
^ super |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
461 |
subclass:nameSymbol |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
462 |
instanceVariableNames:instVarNames |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
463 |
classVariableNames:cVarNames |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
464 |
poolDictionaries:poolDicts |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
465 |
category:cat |
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
466 |
inEnvironment:aNameSpace |
1 | 467 |
]. |
2366
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
468 |
|
1 | 469 |
newClass := self autoload. |
68 | 470 |
sel := thisContext selector. |
471 |
args := thisContext args. |
|
1 | 472 |
newClass notNil ifTrue:[ |
2366
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
473 |
^ newClass perform:sel withArguments:args |
1 | 474 |
]. |
475 |
^ nil |
|
2366
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
476 |
|
bbe8c60d7c9f
additional entry, passing the environment
Claus Gittinger <cg@exept.de>
parents:
2223
diff
changeset
|
477 |
"Created: 8.2.1997 / 19:42:47 / cg" |
1 | 478 |
! ! |
11 | 479 |
|
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
480 |
!Autoload class methodsFor:'queries'! |
356 | 481 |
|
620 | 482 |
isBehavior |
483 |
"return true if the recevier is some kind of class. |
|
484 |
Autoloaded classes are definitely; therefore return true." |
|
164 | 485 |
|
620 | 486 |
^ true |
487 |
! |
|
356 | 488 |
|
729 | 489 |
isBuiltInClass |
1266 | 490 |
"return true if this class is known by the run-time-system. |
491 |
Returns false here." |
|
492 |
||
729 | 493 |
^ false |
494 |
||
495 |
"Created: 10.12.1995 / 00:28:22 / cg" |
|
1266 | 496 |
"Modified: 23.4.1996 / 15:55:36 / cg" |
729 | 497 |
! |
498 |
||
620 | 499 |
isLoaded |
500 |
"return true, if the class has been loaded; redefined in Autoload; |
|
501 |
see comment there. this allows testing for a class been already loaded." |
|
502 |
||
503 |
^ (self == Autoload) |
|
504 |
! |
|
505 |
||
922 | 506 |
loadedClasses |
507 |
"return the set of classes that were autoloaded" |
|
508 |
||
509 |
^ LoadedClasses |
|
510 |
! |
|
511 |
||
620 | 512 |
wasAutoloaded:aClass |
922 | 513 |
"return true, if aClass was autoloaded" |
514 |
||
620 | 515 |
^ LoadedClasses notNil and:[LoadedClasses includes:aClass] |
11 | 516 |
! ! |
620 | 517 |
|
1862
e8f44f10f1ab
changes for new #infoOf: / #linkInfoOf: return
Claus Gittinger <cg@exept.de>
parents:
1720
diff
changeset
|
518 |
!Autoload class methodsFor:'documentation'! |
661 | 519 |
|
520 |
version |
|
2375
7eb1b35edc33
autoload into Smalltalk nameSpace - by default.
Claus Gittinger <cg@exept.de>
parents:
2366
diff
changeset
|
521 |
^ '$Header: /cvs/stx/stx/libbasic/Autoload.st,v 1.66 1997-02-10 12:20:50 cg Exp $' |
661 | 522 |
! ! |
620 | 523 |
Autoload initialize! |