small todo

This commit is contained in:
Ne_Eo
2024-09-03 02:04:40 +02:00
parent 644c75094e
commit 07f7a75759
+3
View File
@@ -29,6 +29,7 @@ class CustomClassHandler implements IHScriptCustomConstructor {
public function hnew(args:Array<Dynamic>):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]);