<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I'm not quite sure about your aims but could this be a solution?<br>
    <br>
    var := Class new.<br>
        var := Subclass1 messageUsing: var.<br>
        var := Subclass2 messageUsing: var.<br>
    <br>
    SubClass1 class side:<br>
    messageUsing: aVar<br>
        <br>
        ^Message1 on: aVar<br>
    <br>
    SubClass2 class side:<br>
    messageUsing: aVar<br>
        <br>
        ^Message2 on: aVar<br>
    <br>
    <br>
    ?<br>
    Sebastian<br>
    <br>
         <br>
    <br>
    <br>
    Am 29.10.2010 18:24, schrieb Sean Allen:
    <blockquote
      cite="mid:AANLkTikEhspjeLw1snqYo3o3E1FzM7=PRwj2gGQM-Haj@mail.gmail.com"
      type="cite">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
                  moz-do-not-send="true"
                  href="mailto:abalonpe@ulb.ac.be">abalonpe@ulb.ac.be</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                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 moz-do-not-send="true"
                  href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
                <a moz-do-not-send="true"
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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>