Login  Register

Re: What's the correct way to create anonymous subclasses in Pharo?

Posted by Joachim Geidel on May 23, 2010; 2:04pm
URL: https://forum.world.st/What-s-the-correct-way-to-create-anonymous-subclasses-in-Pharo-tp2227809p2227858.html

Re: [Pharo-users] What's the correct way to create anonymous subclasses in Pharo? Yes, I tried to debug it, but I can’t step into basicNew, of course, which already returns an instance of the wrong class.

Joachim Geidel


Am 23.05.10 15:46 schrieb Igor Stasenko:

On 23 May 2010 16:38, Joachim Geidel <joachim.geidel@...> wrote: > | newClass method | > newClass := Rectangle clone. > newClass >   superclass: Rectangle; >   organization: nil; >   methodDict: MethodDictionary new; >   setName: #MyRectangle. > newClass new class name. "--> #Rectangle" > newClass new class == newClass. "--> false" ^^^ That's really strange. Have you tried to debug it?

_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users