moonsharp-devs / moonsharp

An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.

Home Page:http://www.moonsharp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The package table is missing most of its fields

technomancy opened this issue · comments

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.