This doesn't work either, because again (Smalltalk at: aClassName) is returning just a ByteString but not (e.g.) &nbsp;&nbsp;&nbsp; Object class&nbsp;&nbsp;&nbsp; or&nbsp;&nbsp; (e.g.) ClassBuilder class .<br><br>Lets assume in the calling method is written:<br>returnSuperClass: '#Object'.<br>Note: the Argument must be an instance of String.<br><br>returnSuperClass: aClassName<br>|aSuperClass|<br><br>aSuperClass := (Smalltalk at: aClassName) superclass.<br><br>^ aSuperClass.<br><br>Nope, this does'nt work.<br><br><b><i>Herbert König &lt;herbertkoenig@gmx.net&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hello Warakorn,<br><br>try:<br>Smalltalk at: #MonthMorph inspect<br><br>Cheers<br><br>Herbert       mailto:herbertkoenig@gmx.net<br>WP&gt; Hi !<br>WP&gt; Actually it is probably a very simple Squeak concept which I haven't understood, yet.<br><br>WP&gt; Serving as an simple example, I would
 like to write a method,<br>WP&gt; which accepts a Class as argument and which return the Superclass<br>WP&gt; of that Class.<br>WP&gt; The problem is that the argument must be an instance of<br>WP&gt; String, that means&nbsp; the argument aClassName&nbsp; contains an actual<br>WP&gt; class name (e.g. aClassName = 'Object'. or aClassName =<br>WP&gt; 'ClassBuilder'), however, this is just a String object.<br><br>WP&gt; returnSuperClass: aClassName<br>WP&gt; |aSuperClass|<br><br>WP&gt; aSuperClass := aClassName superclass.<br><br>WP&gt; ^ aSuperClass.<br><br>WP&gt; Obviously this method won't work, because aClassName is just<br>WP&gt; an instance of ByteString. And instances of ByteString cannot<br>WP&gt; understand the message superclass.<br><br>WP&gt; So I need the actual class object&nbsp; which the content of the String aClassName represents.<br>WP&gt; How can I achieve ? Or how can I make this method correct ?<br>WP&gt; (it is imperative, that the argument aClassName is
 a String).<br><br>WP&gt; Thanks for you help in advance.<br><br><br>WP&gt; Best Regards<br>WP&gt; Warakorn<br><br><br><br>WP&gt; Have a burning question? Go to Yahoo! Answers and get answers from real people who know.<br><br><br><br><br>_______________________________________________<br>Beginners mailing list<br>Beginners@lists.squeakfoundation.org<br>http://lists.squeakfoundation.org/mailman/listinfo/beginners<br></blockquote><br><p>&#32;

<hr size=1>
Don't get soaked.  Take a<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news"> quick peak at the forecast </a><br> with the<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news">Yahoo! Search weather shortcut.</a>