Alberto Demichelis

Results 50 comments of Alberto Demichelis

the only change that would make sense to me is to prevent re-declaration in the same scope. The current behavior is "meh", however setting to null the previous variable is...

how would that work?

I see, but what does sq_getprestring() do differently than malloc() ?

I'm not sure I see much value in this. sq_pushstring avoids allocating memory if the string already exists in the string table, this method would always allocate+free. That already makes...

I think one solution would be to have a "sanitycheck" parameter in the load function that optionally boundchecks bytecode and looks for other possible exploits. I'd rather not have to...

Works fine for me. Please give a spin with vanilla Squirrel before assuming its a bug in Squirrel.

Ok. after running for about an hour it finally run out of memory and crashed :) . I guess we can add a sq_setmaxstacksize() or something like that.

In this case tail recursion is not possible as the last operation is not a call but an addition. Tail recursion only kicks in in this case "return call(a,b,c)".

Aren't most of this scenarios already covered with squirrel threads?(see newthread() etc..) In my company back-end we use "async/await" like semantics for almost everything using squirrel threads, everything is already...

Squirrel doesn't build an AST so I never added this as it didn't sound trivial. I have to take a look how Lua does this, they also don't build an...