welcomeI'm new on this mailing list, this is my first mail :-)
Mark if you read this mail. Did you get problem when you did it?I'm a student from University of Lille (France). I'm studying this tutorial (I'm using Pharo 4 but it seems not to be a problem):��http://sdmeta.gforge.inria.fr/Teaching/ObjVLisp/ObjV.pillar.pdf. I'm working with the "ObjVLispSkeleton-StephaneDucasse.1" image loaded from this repository:
MCSmalltalkhubRepositoryowner: 'StephaneDucasse'project: 'ObjVLispSkeleton'user: ''password: ''
I'm stuck at "Method Lookup" p11. First, it seems that unit tests "testNilWhenErrorInLookup" and "testRaisesErrorSendWhenErrorInLookup" are not provided,
thus I'm not sure that I'm working with the right image (everything was fine until p11 though). Then, the "lookup: selector" is not provided neither.
What you should see is that the second argument is is provided here because when you raise an error, you should send a messageNotUnderstoodWhile there is another method named "lookup: selector from: anObjObject", I can't figure out what I'm supposed to do with the second parameter.
what do you return when you do not find the classHere is what I would do:
lookup: selector"look for the method named <selector> starting in the receiver.��The lookup is done for a message sent to <anObjObject>. self is an objClass"^ self objMethodDictat: selectorifAbsent: [ self objSuperclassId ifNotNil: [ self objSuperclass lookup: selector ] ]
Could someone tell me if this implementation is correct? If it's correct, what do you think the second parameter is for?��
Moreover, do you think I'm working with the right image?
Thanks.
- Edouard