dhorsley / za

Za scripting language
https://zalang.org
MIT License
5 stars 1 forks source link

Fix recursive calls in evaluated interpolation #4

Closed dhorsley closed 3 years ago

dhorsley commented 3 years ago

Recursive user-defined functions may not be called from {=...} interpolated phrases. This is most likely due to mutex locking. It needs a little rework to function as expected.

dhorsley commented 3 years ago

Initially, the interlock mutex has been disabled in interpolate(). This relieves the condition. However, longer term, this, or a similar mechanism, will need re-introducing (with an instance count), as async/parallel use of the function may cause some issues. That issue though, is less severe than this one.

dhorsley commented 3 years ago

Closing this issue for now. May need a separate ticket for parallel use if a race condition exhibits.

dhorsley commented 2 years ago

update: no longer an issue.