<strong style="font-weight: normal;">In the example of this site, there is a point 3) </strong><strong style="font-weight: normal;">Generating a trait from a class.</strong><br>http://www.iam.unibe.ch/~schaerli/smalltalk/traits/ traitsPrototype.htm<br><strong><br>TTrait named: #TPoint<br>fromClass: Point<br>includeSuperUnit: nil<br>uses: {}<br>category: 'Traits-Temp'<br></strong><br>The authors say "When generating a trait   from an existing class, the system automatically replaces instance variable   accesses through accessor methods."<br>Moreover they say the class serves as a source.<br><br><br>Exactly the same thing I would like to do in Squeak 3.9final, too.<br>But I don't know how to do it.<br>If the people, who are doing the research on Traits, included this functionality in March 2003, why isn't there in 2006 ?<br><br><b><i>stephane ducasse &lt;stephane.ducasse@free.fr&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255);
 margin-left: 5px; padding-left: 5px;"> <br>&gt; How can I create a trait from a class in Squeak 3.9 final ?<br>What do you mean?<br><br>If this is taking a class and turning it into a trait. Basically you  <br>cannot. It was never the case or I do not understand what<br>you mean.<br><br>&gt; In previous version I could use e.g. "fromClass: Class1".<br>&gt; (http://www.iam.unibe.ch/~schaerli/smalltalk/traits/ <br>&gt; traitsPrototype.htm)<br>&gt; In 3.9 final this message is not recognized anymore.<br><br><br><br>&gt;<br>&gt; Best regards,<br>&gt; Warakorn<br>&gt;<br>&gt; stephane ducasse <stephane.ducasse@free.fr> wrote: Traits are in  <br>&gt; 3.9 final.<br>&gt;<br>&gt; Stef<br>&gt;<br>&gt; On 18 nov. 06, at 01:25, Warakorn Paphrawat wrote:<br>&gt;<br>&gt; &gt; Hi !<br>&gt; &gt;<br>&gt; &gt; I would like to work with Traits in Squeak 3.9g, too.<br>&gt; &gt; The current VM and Image run very stabble.<br>&gt; &gt;<br>&gt; &gt; The Traits researcher form Bern provide an
 image 3.9a where Traits<br>&gt; &gt; are included. But this image is terribly unstable and I am<br>&gt; &gt; accustomed now to 3.9g.<br>&gt; &gt; I want to port the Traits functionality to Squeal 3.9g.<br>&gt; &gt; How can I do that ?<br>&gt; &gt;<br>&gt; &gt; The thing is, I read that Traits are included in Squeak 3.9g. I can<br>&gt; &gt; find the Trait classes and categories. But I cannot create<br>&gt; &gt; Traits...the Browser doesn't recognize the term Trait oder named or<br>&gt; &gt; fromClass<br>&gt; &gt; e.g.<br>&gt; &gt; Trait named: #TsomeTrait<br>&gt; &gt; fromClass: someClass<br>&gt; &gt; uses: {something}<br>&gt; &gt; category: 'some_category'<br>&gt; &gt;<br>&gt; &gt; SqueakMap always complains when I want to install Traits.<br>&gt; &gt; I read sth. about loading .mcz files, but the FileList Browser<br>&gt; &gt; doesn't let me to load.<br>&gt; &gt;<br>&gt; &gt; What can I do to make it work ?<br>&gt; &gt; Sponsored Link<br>&gt; &gt;<br>&gt; &gt; $200,000
 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home<br>&gt; &gt; equity - Click now for info<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Beginners mailing list<br>&gt; &gt; Beginners@lists.squeakfoundation.org<br>&gt; &gt; http://lists.squeakfoundation.org/mailman/listinfo/beginners<br>&gt;<br>&gt; _______________________________________________<br>&gt; Beginners mailing list<br>&gt; Beginners@lists.squeakfoundation.org<br>&gt; http://lists.squeakfoundation.org/mailman/listinfo/beginners<br>&gt;<br>&gt; Sponsored Link<br>&gt;<br>&gt; Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo -  <br>&gt; Calculate new house payment<br>&gt;<br>&gt; _______________________________________________<br>&gt; Beginners mailing list<br>&gt; Beginners@lists.squeakfoundation.org<br>&gt; http://lists.squeakfoundation.org/mailman/listinfo/beginners<br><br>_______________________________________________<br>Beginners mailing
 list<br>Beginners@lists.squeakfoundation.org<br>http://lists.squeakfoundation.org/mailman/listinfo/beginners<br></stephane.ducasse@free.fr></blockquote><br><p>&#32;

<font color="666666"><font size="2"><hr size=1>Sponsored Link</font></font><br><br>Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo -  
<a href="http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9133-16415&moid=4673">Calculate new house payment</a>