The reason is that require() is going to be realigned to the Lua standard in Love 0.8.0, so require() won't support paths that include file extensions. I took out the parenthesis since they're unneeded, but that part's just an aesthetic change.
Thanks for the tip. There is only left few days till 0.8 is released and I didn't yet saw yet a OSX test binary that worked and run in my machine. So I probably will not use 0.8 so soon.
But I'm a bit shocked and I'm sure if understanding well. That means that I must then start use files without lua extension in requires? Does that not complicate OS/editor recognition of Lua files?
BTW I just use a named "_lib" dir/folder just only to be "placed" in Finder on top of other "normal" dirs (gfx, sfx, fnt...)
coffee wrote:But I'm a bit shocked and I'm sure if understanding well. That means that I must then start use files without lua extension in requires? Does that not complicate OS/editor recognition of Lua files?
What? Why?
Unless you think that the actual files would have no extension, which is not the case.
To require a file called "foo.lua" in the "lib" folder, one does:
Ah with that example I see clearly now. Thank you for clarify Robin. Ok, will take a bit to think that way about external files (even be the Lua way) but I understand now the new mechanics.