Now...what I need is (quite weird I know) is to build a closure as a string and using the previous string as a literal of the closure.�
(Compiler evaluate: '[ �', ' Transcript show: ', 'Sell ' surroundedBySingleQuotes, ']') value.
But, if instead of having 'Sell ', I have 'Sell '' 13', like this:
(Compiler evaluate: '[ �', ' Transcript show: ', 'Sell '' 13' surroundedBySingleQuotes, ']') value.
I get a SyntaxError of a unmatched string:
[ � Transcript show: 'Sell ' 13Unmatched string quote -> ']�
So...what can I do? �I GUESS the solution is to scape that. If I try adding 2 more single quotes, like this:
(Compiler evaluate: '[ �', ' Transcript show: ', 'Sell '''' 13' surroundedBySingleQuotes, ']') value.
it seems to work. �If this is correct, is there an easy way (a method?) to scape my string automatically so that it works?
��
Thanks in advance,�