HaxeFoundation / HaxeFoundation/haxe

[lua] Global Var Args

Open
#10,753 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

I'm working on a computercraft script, and how it passes arguments is via calling the file with rest args. In lua, you are meant to obtain these via
```lua
local args = {...}
```
Given that within the main function, you can't access global `...` (i've tried) it would be nice if you could i.e. add a `...rest` to the main function.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.