SpookyFM / hscript

Automatically exported from code.google.com/p/hscript
0 stars 0 forks source link

allow state save #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
how about adding a argument to force prevent previously used locals from
getting cleared ?

172,173c172,173
<   public function execute( expr : Expr ) : Dynamic {
<       locals = new Hash();

---
>   public function execute( expr : Expr, clear : Bool = true ) : Dynamic {
>       if( clear ) locals = new Hash();

this would allow to save the state of the vm.

Original issue reported on code.google.com by tong.disktree@gmail.com on 23 May 2010 at 8:23

GoogleCodeExporter commented 9 years ago
You're welcome to subclass hscript.Interp to add custom behaviors.

Original comment by ncanna...@gmail.com on 29 Jul 2010 at 8:02

GoogleCodeExporter commented 9 years ago
well. its no problem to sublass it, but i thought its just a additional, nice 
feature (which does not break anything)

Original comment by tong.disktree@gmail.com on 29 Jul 2010 at 8:07