[Seaside] A litle question about Sets
watchlala at hotmail.com
Mon Mar 1 16:59:24 UTC 2010
Play around with it in workspace.
> To: vladmanchev at gmail.com
> Subject: Re: [Seaside] A litle question about Sets
> From: merlyn at stonehenge.com
> Date: Mon, 1 Mar 2010 08:48:25 -0800
> CC: seaside at lists.squeakfoundation.org
> >>>>> "Michael" == Michael Delache <vladmanchev at gmail.com> writes:
> Michael> I defined an object called AlbumAuthor.
> A class, you mean?
> Michael> In an other object, Album, I putted a instance variable called authors which
> Michael> will contain the authors of the album.
> An instance of Album contains an instance variable called authors. OK.
> Michael> So, I would like to know if I can define the instance as a Set but
> Michael> containing only AlbumAuthor type objects.
> Sure. Add only AlbumAuthor objects, and that's all it will contain.
> Other objects don't magically jump in there.
> This question is better asked on the beginners@ list, not Seaside.
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
> seaside mailing list
> seaside at lists.squeakfoundation.org
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside