Re: Escape strings for compiler
Posted by
Marcus Denker-4 on
Jul 26, 2010; 8:27am
URL: https://forum.world.st/Escape-strings-for-compiler-tp2302000p2302020.html
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 '' '
--
Marcus Denker --
http://www.marcusdenker.deINRIA Lille -- Nord Europe. Team RMoD.
_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users