<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>Play around with it in workspace.<br><br>RS<br><br>> To: vladmanchev@gmail.com<br>> Subject: Re: [Seaside] A litle question about Sets<br>> From: merlyn@stonehenge.com<br>> Date: Mon, 1 Mar 2010 08:48:25 -0800<br>> CC: seaside@lists.squeakfoundation.org<br>> <br>> >>>>> "Michael" == Michael Delache <vladmanchev@gmail.com> writes:<br>> <br>> Michael> I defined an object called AlbumAuthor.<br>> <br>> A class, you mean?<br>> <br>> Michael> In an other object, Album, I putted a instance variable called authors which<br>> Michael> will contain the authors of the album.<br>> <br>> An instance of Album contains an instance variable called authors. OK.<br>> <br>> Michael> So, I would like to know if I can define the instance as a Set but<br>> Michael> containing only AlbumAuthor type objects.<br>> <br>> Sure. Add only AlbumAuthor objects, and that's all it will contain.<br>> Other objects don't magically jump in there.<br>> <br>> This question is better asked on the beginners@ list, not Seaside.<br>> <br>> -- <br>> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095<br>> <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/><br>> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.<br>> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion<br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/201469226/direct/01/' target='_new'>Sign up now.</a></body>
</html>