Functions with varying amounts of arguments?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Functions with varying amounts of arguments?
Is there a way to make a function have a varying number of arguments (like some of the love.graphics functions)?
- The Burrito
- Party member
- Posts: 153
- Joined: Mon Sep 21, 2009 12:14 am
- Contact:
Re: Functions with varying amounts of arguments?
I just put optional arguments at the end, and check if nil before doing anything with them. Not sure if theres an easy way to do more complex things like various numbers of coordinate pairs or something.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 64 guests