4 ms·
Be careful when asserting that things are not Turing-complete! I'm fairly sure OpenSCAD is indeed Turing-complete, if you discount the recursion limit of 100000
by dTal 4y ago
Be careful when asserting that things are not Turing-complete! I'm fairly sure OpenSCAD is indeed Turing-complete, if you discount the recursion limit of 1000000 (it even sports tail call optimization, so I'm not quite sure why it even has a recursion limit).
<edit> apparently the recursion limit is a deliberate feature to prevent infinite loops, as there is currently no way to interrupt such loops.
- avmich 4y agoInteresting. Is it possible to input some data in a loop in OpenSCAD? "Input once" can be considered the whole program.
- Brian_K_White 4y agoI don't know exactly what you mean but there are for loops to do something n times and iterate where values change each iteration. There is not goto. I don't know about recursion offhand, never tried.