Is there a REPL (Read-Eval-Print Loop) available anywhere for Actionscript 3? I could not find anything on google, but it would really come in handy.
What does this have to do with the ability to have a REPL?
leppie
2008-12-02 13:14:40
I thought that the point of a REPL was to let you enter code at run time and evaluate that code interactivly. In javascript you can use "eval" to compile/run new code like this but no such ability exists in actionscript as the compiler is not available at runtime. Did I miss the point?
John Burton
2008-12-02 13:23:43
Plenty of compiled languages have REPLs. OCaml, Haskell and Erlang come to mind.
Jesse Millikan
2008-12-02 17:57:10
Ok fair enough. It's clearly possible if the compiler is available at run time which as far as I know it isn't in actionscript. I may be wrong :)
John Burton
2008-12-03 10:51:19
@John Buton: Hurlant's Eval library packages the Tamarin ESC compiler, providing a means of compiling and eval'ing AS3: http://eval.hurlant.com/
Charles
2010-10-27 03:11:20
... which, as I just realized, is what Thom linked to in his answer.
Charles
2010-10-27 03:12:13