[Bese-devel] interesting

Henrik Hjelte henrik at evahjelte.com
Sat Feb 10 10:10:25 UTC 2007


On Fri, 2007-02-09 at 20:37 +0200, Evrim ULU wrote:
> document.write(str.replace(/icrosof/g, "void"))
> 
> how to write this in parenscript? any ideas?
> 
> thnx.
> evrim.
> 

JS> (js:js-to-string 
     '(document.write (str.replace (regex "/icrosof/g") "void")))

"document.write(str.replace(/icrosof/g, 'void'))"

or: 

JS> (js:js-to-string 
'(document.write ((slot-value str 'replace) 
                  (regex "/icrosof/g")
                  "void")))
"document.write(str.replace(/icrosof/g, 'void'))"

/Henrik Hjelte





More information about the bese-devel mailing list