From 07f7a757590cf00448adc03abc74908f9982548f Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Tue, 3 Sep 2024 02:04:40 +0200 Subject: [PATCH] small todo --- hscript/CustomClassHandler.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hscript/CustomClassHandler.hx b/hscript/CustomClassHandler.hx index f311fd5..f70cece 100644 --- a/hscript/CustomClassHandler.hx +++ b/hscript/CustomClassHandler.hx @@ -29,6 +29,7 @@ class CustomClassHandler implements IHScriptCustomConstructor { public function hnew(args:Array):Dynamic { // TODO: clean this up, it sucks, i hate it + // TODO: make static vars work correctly var interp = new Interp(); interp.errorHandler = ogInterp.errorHandler; @@ -62,6 +63,8 @@ class CustomClassHandler implements IHScriptCustomConstructor { interp.customClasses.set(key, value); } } + // todo: clone static vars, but make it so setting it only sets it on the class + // todo: clone public vars //trace("Before: " + [for(key => value in interp.variables) key]);