3 ms·
I've looked into it a bit. Visualworks smalltalk documentation gave me an idea[1]. In Smalltalk everything is an object, that is including numbers, characters
by terminalcommand 9y ago
I've looked into it a bit. Visualworks smalltalk documentation gave me an idea[1].
In Smalltalk everything is an object, that is including numbers, characters etc. The standar method-lookup searches from the innermost class methods to the outermost class methods.
The method finder could simply iteratively go through all applicable methods that return the class requested and match results.
[1]: http://esug.org/data/Old/vw-tutorials/vw25/vw25ug.pdf http://esug.org/data/Old/vw-tutorials/vw25/vw25ug.pdf (page 42 method-lookup)