home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
232_01
/
class.st
< prev
next >
Wrap
Text File
|
1987-06-17
|
1KB
|
50 lines
Class Class
[
edit
<ClassEdit self>
|
list
<ClassList self>
|
new | superclass newinstance |
superclass <- <SuperClass self>.
<RespondsToNew superclass >
ifTrue: [newinstance <- superclass new ].
newinstance <- <ClassNew self newinstance >.
<RespondsTo self #new >
ifTrue: [newinstance <- newinstance new].
^ newinstance
|
new: aValue | superclass newinstance |
superclass <- <SuperClass self>.
<RespondsToNew superclass >
ifTrue: [newinstance <- superclass new ].
newinstance <- <ClassNew self newinstance >.
<RespondsTo self #new: >
ifTrue: [newinstance <- newinstance new: aValue ].
^ newinstance
|
printString
^ <ClassName self >
|
respondsTo
<PrintMessages self>
|
respondsTo: aSymbol | aClass |
aClass <- self.
[aClass notNil] whileTrue:
[ <RespondsTo aClass aSymbol> ifTrue: [ ^ true ].
aClass <- aClass superClass ].
^ false
|
superClass
^ <SuperClass self>
|
variables
^ <Variables self>
|
view
<ClassView self>
]