There are types in smalltalk. Each object has a type.<div><br></div><div>That aside, what are you trying to accomplish with your example below?</div><div><br></div><div><div><div><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 12:13 PM, Alexandre BP <span dir="ltr">&lt;<a href="mailto:abalonpe@ulb.ac.be">abalonpe@ulb.ac.be</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
<br>Hello,<div><br></div><div>I would like to know if it is possible to apply dynamic typing in smalltalk. For example, If I want to use polymorphism, it would be:</div><div><span style="white-space:pre-wrap">        </span></div>
<div><span style="white-space:pre-wrap"> </span>     var := Class new.</div><div><span style="white-space:pre-wrap">        </span>var := (SubClass1) message. </div><div><span style="white-space:pre-wrap">        </span>var := (SubClass2) message.</div>
<div><br></div><div>Where message from SubClass1 is different then the one from SubClass2.</div><div>Is there any solution for my problem? </div><div>I know that there is no type in smalltalk but there is definitely a way to use polymorphism right?</div>
<div><br></div><div>Thank you in advance,</div><div>Regards</div><div>alex</div>                                               </div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div></div></div>