|
Smalltalk/X WebserverDocumentation of class 'PrototypeLookupAlgorithm': |
|
|
Class: PrototypeLookupAlgorithmInheritance:Object | +--PrototypeLookupAlgorithm
Description:this is a dummy lookupAlgorithm class to demonstrate the meta-object-protoocol support. Create a sumclass of me, redefine the lookupmethod to return a method proper. If it returns nil, a doesNotUnderstand will be sent, as usual. This class does nothing real - it duplicates the algorithm as found in the VM. Related information:
jan
Vrany's
paper
on
Smalltalk's
Meta-Object-Protocol
proposal.
Class protocol:instance creationInstance protocol:lookup
Examples:this is only a test for the lookup; when installed as a class's lookupObject, the lookup will be called from the VM for instances of that class. |mthd| mthd := self new lookupMethodForSelector:#squared directedTo:nil for:100 withArguments:nil from:nil. mthd valueWithReceiver:100 arguments:#(). |
|
|
ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 20:45:31 GMT
|