CrazyPerson
CrazyPerson
> You can do it via method. Define custom func on env struct and access var from env. Thanks to reply. I mean if we use a custom func to...
> You can do it via method. Define custom func on env struct and access var from env. I have known we could use env in script, I didn't notice...
> Any new run would still start with stack pointer `0` so it should be fine, but the stack itself wouldn’t start out empty. I don’t see any obvious way...
> Any new run would still start with stack pointer `0` so it should be fine, but the stack itself wouldn’t start out empty. I don’t see any obvious way...
All the pool's target is to reduce the overhead of memory allocation. These two lines would not make extra memory allocation if you doubt about that. ``` *v.stack = [len(v.stack)]tengo.Object{}...