Python-style imports
Reported by Mikael Lind | November 7th, 2008 @ 09:59 AM | in 0.1
Usage:
local import = require("import") -- Returns the import function. local util = import("util") -- Returns a table of all globals declared in util.
See attached implementation.
Comments and changes to this ticket
-

Mikael Lind November 7th, 2008 @ 10:46 AM
Change the import function to allow cyclic imports.
Perhaps add a proxy table to cyclic imports? Pro: Better error messages. Con: Performance overhead.
-

Mikael Lind November 7th, 2008 @ 09:04 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Moonshine is a roguelike computer game written in Lua.