Rick Kitts wrote
> I’m futzing about with the Duration class... it’s really easy to crash
> Pharo if I break that class

Yes, it can be frustrating to work in the deep innards ;)


Rick Kitts wrote
> the naive solution (copy the original class, modify it to suit, delete the
> original and rename the new class to the original) of course doesn’t work

I'm assuming that it doesn't work because when you delete the original, you
break the image. How about this modification: copy, modify, fileout, in text
editor change all references to MyCopiedDuration to Duration, file back in.
Not sure if that would work, but that'd be my next attempt - working
directly on the kernel classes usually sucks enough to get creative.



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Advice-for-a-newb-tp4759632p4759634.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to