Formula Can Use Deleted Variables

Deleting and/or changing variables in the code box doesn’t register as an error when they’re used in the formula calculation. Their values are still stored and used.


I can see that this can be confusing, as loading back a song with a previously working formula may then suddenly break.

The same thing also happens in Renoise’s Scripting Terminal and editor. Global variables are never cleared before changing a script which then gets evaluated again. Doing so would of course be possible, but this would require recreating the Lua interpreter every time you make a little change which again is creating quite some overhead (and work on our side). So I’d in doubt simply keep things as they are…

OK, good to know, thanks.