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

The package table is missing most of its fields #285

Open
technomancy opened this issue Jul 12, 2020 · 0 comments
Open

The package table is missing most of its fields #285

technomancy opened this issue Jul 12, 2020 · 0 comments

Comments

@technomancy
Copy link

In PUC Lua, the package table has many fields:

$ lua
Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
> for k in pairs(package) do print(k) end
config
loaded
preload
loadlib
searchers
path
cpath
searchpath

In Moonsharp, only 2 fields exist:

$ mono moonsharp/repl/MoonSharp.exe 
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
MoonSharp Console 2.0.0.0 [std.mono.clr4]
Copyright (C) 2014-2016 Marco Mastropaolo
http://www.moonsharp.org


Type Lua code to execute it or type !help to see help on commands.

Welcome.

> for k in pairs(package) do print(k) end
loaded
config

Naturally I wouldn't expect package.cpath to be present in a .NET context, but the absence of package.preload, package.path, and package.searchers presents compatibility problems; in my case making it so that Fennel will not run.

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

No branches or pull requests

1 participant