Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Returning a top-level export instead of as part of a table #299

@s5bug

Description

@s5bug

How to emulate

return function(importantArgData)
  return { stuff = "stuff" }
end

in Amulet? The best that I can do is generating a table with --export:

let foo importantArgData = { stuff = "stuff" }
do
  return { foo = function(importantArgData) return { stuff = "stuff" } end }
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions