On 16 December 2012 19:42, Ciprian Teodorov <ciprian.teodorov@gmail.com> wrote:
Hi guys,
Can somebody tell what is the correct way of creating anonymous classes in Pharo? When I say correct way I mean something that does not break the image or the tools.
The thing is that we can use them in NativeBoost and I cannot stop running into errors because of these anonymous classes. Is it just me or maybe we should do something about it...
I am really frustrated about this thing because everybody knows that we can do it... but at the end of the day it is not working properly, and has bizzare side effects.
Depends what you wanna do.
What about an official API for doing this? Or at least a way to check if your class is anonymous so that we can refactor the tools to ignore them or something...
Using anonymous classes with tools which written to work with public ones will never work. There are too many places on different levels of system with strong assumptions about how things are organized. Perhaps if you tell, what you trying to do, we can see how to deal with problems. P.S. wellcome to bizarre world of metaprogramming :)
-- Dr. Ciprian TEODOROV Ingénieur Développement CAO
tél : 06 08 54 73 48 mail : ciprian.teodorov@gmail.com www.teodorov.ro
-- Best regards, Igor Stasenko.