Hi guys!
Currently, I'm following the chapter: "Building ObjVlisp a Minimal, Uniform and Reflective Object-Oriented Language Kernel" (http://sdmeta.gforge.inria.fr/Teaching/ObjVLisp/). While doing this exercise I realized how cool it is :) Anywhays, I encountered a little problem which I solved, so it's more like a comment/feedback: In section 1.7 Message Passing and Dynamic Lookup, there are mentioned several methods, that are not actually implemented. Moreover, the readers task is to implement method #lookup: selector. But the skeleton(mcz package in the link above) does not contain this method. In the end of this section, it is said, that you have to run #testNilWhenErrorInLookup and #testRaisesErrorSendWhenErrorInLookup test methods. But, they does not exist too:) However, in test class there is a category called "tests-MessagePassingsAndDynamicsLookup" and it uses method #lookup: selector for: anObjObject. This method is empty, and when I implemented it, all tests from message passing category become green. Eventually my comment about this is: I'm guessing that either chapter or code(mcz file in the link I mentioned) is not up to date. Does anyone know if the rest of the chapter/code is not up to date? Or maybe I made a mistake and just couldn't find what I had to? P.S. I really recommend to follow this chapter/exercise :) Best, Mark |
Thanks mark I will fix that as soon as I can concentrate :)
I will check but I guess that this is my mistake :) Glad that you really like it. Le 3/5/15 09:15, Mark Rizun a écrit : > Hi guys! > > Currently, I'm following the chapter: "Building ObjVlisp a Minimal, Uniform > and Reflective Object-Oriented Language Kernel" > (http://sdmeta.gforge.inria.fr/Teaching/ObjVLisp/). While doing this > exercise I realized how cool it is :) > > Anywhays, I encountered a little problem which I solved, so it's more like a > comment/feedback: > In section 1.7 Message Passing and Dynamic Lookup, there are mentioned > several methods, that are not actually implemented. Moreover, the readers > task is to implement method #lookup: selector. But the skeleton(mcz package > in the link above) does not contain this method. In the end of this section, > it is said, that you have to run #testNilWhenErrorInLookup and > #testRaisesErrorSendWhenErrorInLookup test methods. But, they does not exist > too:) > However, in test class there is a category called > "tests-MessagePassingsAndDynamicsLookup" and it uses method #lookup: > selector for: anObjObject. This method is empty, and when I implemented it, > all tests from message passing category become green. > > Eventually my comment about this is: I'm guessing that either chapter or > code(mcz file in the link I mentioned) is not up to date. > > Does anyone know if the rest of the chapter/code is not up to date? Or maybe > I made a mistake and just couldn't find what I had to? > > P.S. I really recommend to follow this chapter/exercise :) > > Best, > Mark > > > > -- > View this message in context: http://forum.world.st/Building-ObjVlisp-language-chapter-tp4823907.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > > |
Free forum by Nabble | Edit this page |