hamobi
hamobi

Reputation: 8130

Confused about the use of ... in lua/corona

I was researching push notifications for corona and came across this page

https://docs.coronalabs.com/api/event/notification/type.html

the code I'm confused about is the part at the top

-- The launch arguments provide a notification event if this app was started when the user tapped on a notification
local launchArgs = ...

what does the ... mean?

Upvotes: 1

Views: 71

Answers (1)

Yu Hao
Yu Hao

Reputation: 122383

... is the syntax for vararg expressions, which is used in vararg functions.

In this example, ... is used in the main body of a script. The script can be treated as a vararg function, so ... here is the arguments of the script.

Upvotes: 1

Related Questions