Hello, I want to write a message with a String-argument, which adds a new method to MyClass: --------------------------------------------------------- aMethod: 'MyClass' ---------------------------------------------------------
This is what I wrote for aMethod: --------------------------------------------------------- aMethod: myClassWhichExist "comment stating purpose of message"
myClassWhichExist compile: 'myMethod "comment stating purpose of message" | h | h:= ''Hello''. ^ h.' classified: 'delete' ---------------------------------------------------------
I get the following error message: --------------------------------------------------------- ByteString(Object)>>error: error: aString "Throw a generic Error exception." ^ Error new signal: aString ---------------------------------------------------------
I understand that the class name 'myClassWichExist' as string-argument doesn't go along with the compile-message. But to what do I need to convert the string-argument to make it work? Many thanks in advance for your answers.
Olitizia
On Mar 9, 2008, at 22:40 , Dirk Klaschus wrote:
I understand that the class name 'myClassWichExist' as string- argument doesn't go along with the compile-message. But to what do I need to convert the string-argument to make it work?
Smalltalk classNamed: myClassWichExist
- Bert -
Thanks, that helped. Vielen Dank Bert.
Dirk
2008/3/10, Bert Freudenberg bert@freudenbergs.de:
On Mar 9, 2008, at 22:40 , Dirk Klaschus wrote:
I understand that the class name 'myClassWichExist' as string- argument doesn't go along with the compile-message. But to what do I need to convert the string-argument to make it work?
Smalltalk classNamed: myClassWichExist
- Bert -
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org