Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require/import other definitions from .tld #66

Open
daurnimator opened this issue Aug 14, 2015 · 1 comment
Open

require/import other definitions from .tld #66

daurnimator opened this issue Aug 14, 2015 · 1 comment

Comments

@daurnimator
Copy link

From #12 (comment)

there is still not way to require/import other definitions inside .tld files.

It'd be nice if there was some way to require/import definitions from one .tld file to another.

@mascarenhas
Copy link
Collaborator

Part of the groundwork for that is already in place (see issue #68). The idea will be to have each module define its own namespace for global type aliases:

---- mymodule.tl ---
interface Foo
  ...
end
...
-----

---- client.tl ---
local mod = require "mymodule"
local foo: mod.Foo = ...
-----

Inside .tld files it is going to work in a similar way (we have not defined a syntax yet, though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants