-
Notifications
You must be signed in to change notification settings - Fork 2
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
Lua versions? #3
Comments
I didn't even think about supporting multiple versions, but the example code worked with version 5.1. |
I'm thinking a bit about making a binding for PICO-8 (which uses a subset of Lua too). |
A binding to PICO-8 would be great! good luck. My first haskell project was an attempt to make something like the pico-8, but got stumped with some SDL issues. Making a PureScript wrapper instead would sidestep that class of issues. That sounds promising regarding using the simple subset being likely to work across versions. I've not been in a good place to try it yet but still hope to do so at some point in the coming months. |
@opyapeus Got around to trying this out with luatex and world-of-warcraft. I think the latter has a few more issues that need to be resolved, but possibly not in this repo. The current blocker for me relates to wow's Lua not having require. Probably the way to go is to implement Also, for anyone interested, my notes are currently at https://gist.github.com/bbarker/e22650106109c78cca6361b4ce50d24c until I get something more substantial (and working) available. |
So far, I'm not sure implementing Instead of having just return {
log = log,
logShow = logShow,
warn = warn,
warnShow = warnShow,
error = error,
errorShow = errorShow,
info = info,
infoShow = infoShow,
time = time,
timeLog = timeLog,
timeEnd = timeEnd,
clear = clear
} We could do something like: local Console = {
log = log,
logShow = logShow,
warn = warn,
warnShow = warnShow,
error = error,
errorShow = errorShow,
info = info,
infoShow = infoShow,
time = time,
timeLog = timeLog,
timeEnd = timeEnd,
clear = clear
}
Effect.Console = Console;
return Console
|
I've been wanting to do PureScript addons for Wow for some time; WoW uses a subset of Lua 5.1; refrence ist here. I wonder what the best way is to support multiple versions of Lua?
The text was updated successfully, but these errors were encountered: