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

[Suggestion] Varargs #3

@theoriginalbit

Description

@theoriginalbit

In Lua it is possible to have vararg functions, I'm sure you should know what they are as they're in multiple languages, I think blockly-lua having support would be good.

examples

local args = {...} -- getting all the runtime args of the program

local function foo(...) -- vararg function
  local args = {...} -- varargs of the function
  print(...) -- print is a vararg function it will concat all these together and output them
end

-- calling vararg functions is not a static amount
foo("bar")
foo("bar", "hello", "world")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions