On 26.07.2010, at 10:27, Marcus Denker wrote:


On Jul 26, 2010, at 10:09 AM, Norbert Hartl wrote:

Hi,

I tried to compile a method that returns a string.  Is there a method to escape a string in a way that the compiler treats it as a string and not as code?



If you want to return something that again can be evaluated as a string, you can use double quotes inside:

Compiler evaluate: ' '' evaluate me, I am a String '' '  

I want to compile a method

myString
^ 'arbitrary string'

So the problem is more of how would you do what you suggested having the string: evaluate me, I'm a String ?

Norbert