On Fri, Feb 26, 2010 at 6:14 AM, Rick Flower <[email protected]> wrote:
> Paolo,
>
> I'd like to add >>asArrayOfSubstrings (found in the Smalltalk
> by Example book) into the CharacterArray class but would like
> it to remain within my script so that I don't modify the kernel
> files directly.. What's the best way to do that?
You can use
someClass extend [
yourMethod [
...
]
]
or
someClass class extend [
yourClassMethod [
...
]
]
in your script. This is the way I used to do it.
lee
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk