Argument Error (Solved)
Argument Error (Solved)
I have found a big bug in love 0.9.0 involving functions that use (...). The function line.midpoint(...) takes an undefined number of arguments, which love 0.9.0 will always pass the file directory instead of the given values. The fallowing .love file will work in 0.8.0 but will not work in 0.9.0.
Last edited by XCaptain on Fri Dec 27, 2013 2:25 am, edited 1 time in total.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Argument Error
The implicit "arg" table was deprecated in Lua 5.1. Unfortunately the official online version of the PiL book is written for Lua 5.0, so it gives the wrong advice for this.
Do something like local args = {...}, or local a, b = ... instead.
Do something like local args = {...}, or local a, b = ... instead.
Re: Argument Error
Thank you for tell me this, didn't know I need to use ... and not arg.
Who is online
Users browsing this forum: Semrush [Bot] and 3 guests