some questions
Dwight Hughes
dwighth at ipa.net
Thu Oct 14 03:06:49 UTC 1999
Another way is to fileout the original class, rename the original class
in the image to the new name, then file the original class back in (thus
recreating the old class in the image). There may still be a few
references to the old class in the renamed class, but the references are
easily found and changed.
-- Dwight
Michael Rueger wrote:
>
> Lyn A Headley wrote:
>
> > couldn't figure out how to copy a class along with its methods. Is it
> > because this is frowned on in favor of subclassing?
>
> Yes! (among other reasons)
>
> But there is a neat trick how to do this:
> - fileOut the class
> - replace all occurences of the class name in the file (e.g. using find
> and replace in the file list)
> - fileIn the file
>
> Michael
>
> --
>
> "To improve is to change, to be perfect is to change often."
> Winston Churchill
> +------------------------------------------------------------+
> | Michael Rueger |
> | Phone: ++1 (818) 623 3283 Fax: ++1 (818) 623 3559 |
> +--------Michael.Rueger.-ND at online.disney.com----------------+
More information about the Squeak-dev
mailing list
|