How can I avoid the following error from Lua 5.1 when attempting to do a circular require?
$ lua main.lua lua: ./bar.lua:1: loop or previo
Another way would to solve this issue would be to change the structure of the code and extract the "mutual" functionality into a third module, which both Foo and Bar would require.
Foo
Bar