[Newbies] Re: mix ins

Joseph Alotta joseph.alotta at gmail.com
Tue Aug 2 15:39:59 UTC 2016

> On Aug 2, 2016, at 9:38 AM, Bert Freudenberg [via Smalltalk] <ml-node+s1294792n4909172h81 at n4.nabble.com> wrote:
> Thirdly, to keep these "extension methods" in your own package, put them in a method category that starts with an asterisk followed by your package name. That is, if your Monticello package is named "Foo-Bar", then put your "mix in" Array methods into the category "*foo-bar" which will mark them as belonging to your package, not the package the Array class is in. The extension methods will be stored and loaded with your package.


I am not sure how to do this.  My project is called Books.  Is this what you mean?

Object subclass: #Array
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: ‘*Books’



PS.  Thanks for the bit about the join methods and the changes.  :-)

View this message in context: http://forum.world.st/mix-ins-tp4909171p4909179.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20160802/d637bda5/attachment.htm

More information about the Beginners mailing list