<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 <stephane.ducasse@free.fr></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255);
margin-left: 5px; padding-left: 5px;"> <br>> 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>> In previous version I could use e.g. "fromClass: Class1".<br>> (http://www.iam.unibe.ch/~schaerli/smalltalk/traits/ <br>> traitsPrototype.htm)<br>> In 3.9 final this message is not recognized anymore.<br><br><br><br>><br>> Best regards,<br>> Warakorn<br>><br>> stephane ducasse <stephane.ducasse@free.fr> wrote: Traits are in <br>> 3.9 final.<br>><br>> Stef<br>><br>> On 18 nov. 06, at 01:25, Warakorn Paphrawat wrote:<br>><br>> > Hi !<br>> ><br>> > I would like to work with Traits in Squeak 3.9g, too.<br>> > The current VM and Image run very stabble.<br>> ><br>> > The Traits researcher form Bern provide an
image 3.9a where Traits<br>> > are included. But this image is terribly unstable and I am<br>> > accustomed now to 3.9g.<br>> > I want to port the Traits functionality to Squeal 3.9g.<br>> > How can I do that ?<br>> ><br>> > The thing is, I read that Traits are included in Squeak 3.9g. I can<br>> > find the Trait classes and categories. But I cannot create<br>> > Traits...the Browser doesn't recognize the term Trait oder named or<br>> > fromClass<br>> > e.g.<br>> > Trait named: #TsomeTrait<br>> > fromClass: someClass<br>> > uses: {something}<br>> > category: 'some_category'<br>> ><br>> > SqueakMap always complains when I want to install Traits.<br>> > I read sth. about loading .mcz files, but the FileList Browser<br>> > doesn't let me to load.<br>> ><br>> > What can I do to make it work ?<br>> > Sponsored Link<br>> ><br>> > $200,000
mortgage for $660/mo - 30/15 yr fixed, reduce debt, home<br>> > equity - Click now for info<br>> ><br>> > _______________________________________________<br>> > Beginners mailing list<br>> > Beginners@lists.squeakfoundation.org<br>> > 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>><br>> Sponsored Link<br>><br>> Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo - <br>> Calculate new house payment<br>><br>> _______________________________________________<br>> Beginners mailing list<br>> Beginners@lists.squeakfoundation.org<br>> 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> 
<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>