-
Notifications
You must be signed in to change notification settings - Fork 27
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
[on hold] Add Minetest #5
base: master
Are you sure you want to change the base?
Conversation
In tl 0.6.0, just released, it is. :) (there was a bug which I fixed)
Not yet... the types have no knowledge of metatables at this point. |
end | ||
|
||
function setfenv(x: any, y: any) -- TODO | ||
function setfenv(x: any, y: any) -- TODO: add to tl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A quick heads-up: I'd rather not adding Lua 5.1-only functions to the Teal standard library definitions — that reminds me I might need to double-check the math
library additions!
This is under consideration — discussion ongoing here: teal-language/tl#97 (see also this draft for a simpler variant: teal-language/tl#124 )
Not yet. Nil in Teal currently works the same way as in Lua: every variable may be nil, regardless of its type (unions or not). I talk a bit about the challenges involved there in my FOSDEM 2020 talk here: https://www.youtube.com/watch?v=HfnjUCRzRKU |
Hey I got something for you https://github.com/jordan4ibanez/forgotten-lands/blob/main/minetest.d.tl |
Question(s):
nil
?Here is some code that shows some of the weird behavior I get:
Answered questions
Is it possible to have an array of multiple types? (Yes, with tl 0.6.0) For example:
Is it possible to allow constructors for records? (Not yet) For example: