<div dir="ltr">Hi Helmut,<br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-26 16:40 GMT+02:00 Helmut Rohregger <span dir="ltr"><<a href="mailto:helmut.rohregger@gmail.com" target="_blank">helmut.rohregger@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To clarify things: I am writing a squeak byte code interpreter in Java,<br>
which is still in experimental stage. To test my interpreter, I have<br>
written test cases in squeak, which get executed in my interpreter...<br></blockquote><div><br><br></div><div>I once ported squeaks vm code from C to java. <br>(I did not develope my own interpreter most of the initial code was<br>
copy and pasted and (manually) translated to valid javacode.<br></div><div>(And heavily restructured afterwards.))</div><div><br></div><div>Maybe your are interested in that code, even though you <br>are developing your own and don't want to port the exising one.<br>
</div><div><br></div><div>The code is pretty old (6-8 years!), but it can load and execute a squeak 3.10 image<br></div><div><br></div><div><br></div><div>regards<br>Nicolai<br></div><div><br></div><div><br><br><br> </div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
- Helmut<br>
<br>
Am <a href="tel:24.04.2014%2011" value="+12404201411" target="_blank">24.04.2014 11</a>:54, schrieb Frank Shearar:<br>
<div><div>> That confuses me, because people usually implement their tests as<br>
> instance methods of a TestCase subclass.<br>
><br>
> I wouldn't be surprised if writing your test cases as class-side<br>
> methods didn't break something in tooling that might well expect to<br>
> see instance methods.<br>
><br>
> frank<br>
><br>
> On 23 April 2014 20:09, Helmut Rohregger <<a href="mailto:helmut.rohregger@gmail.com" target="_blank">helmut.rohregger@gmail.com</a>> wrote:<br>
>> Hi Andreas,<br>
>><br>
>> thanks for your response.<br>
>><br>
>> This is just a test class, where every single method is a test case. I<br>
>> implemented this class when I started to learn Squeak and implemented<br>
>> this test cases by mistake at the instance side of the test class...<br>
>><br>
>> - Helmut<br>
>><br>
>> Am 23.04.2014 18:51, schrieb Andreas Wacknitz:<br>
>>> Hi Helmut,<br>
>>><br>
>>> Am 23.04.2014 um 08:18 schrieb Helmut Rohregger <<a href="mailto:helmut.rohregger@gmail.com" target="_blank">helmut.rohregger@gmail.com</a>>:<br>
>>><br>
>>>> Hi,<br>
>>>><br>
>>>> because I didn't get response to my question in the beginners list, I<br>
>>>> post it here.<br>
>>>><br>
>>>> Is there an easy way to change instance methods to class methods?<br>
>>>> I know it is possible to drag and drop single methods. But I am looking<br>
>>>> for the possibility to move 100+ methods at once.<br>
>>>><br>
>>>> - Helmut<br>
>>>><br>
>>><br>
>>> Are you really trying to move 100+ methods within a single class?<br>
>>> If so that sounds utterly wrong. And moving from the instance side to the class side is even worse.<br>
>>> This smells like putting a single class around your old non-OO code.<br>
>>> If you don’t have REALLY good reasons to have such a number of methods in a class you should<br>
>>> consider to refactor the class into several classes.<br>
>>> This wouldn’t prevent you from having the problem to move methods around but would lessen the pain.<br>
>>><br>
>>> Regards,<br>
>>> Andreas<br>
>>><br>
>>><br>
>><br>
>><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>