class problem

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
matifere
Prole
Posts: 1
Joined: Sat Apr 04, 2020 3:29 pm

class problem

Post by matifere »

I have a problem with this program ...
This is the error
Error

Paddle.lua:1: attempt to call global 'Class' (a boolean value)


Traceback

Paddle.lua:1: in main chunk
[C]: in function 'require'
main.lua:4: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

also, I attach the files down here
pong.zip
(5.99 KiB) Downloaded 118 times
Möve
Prole
Posts: 1
Joined: Sat Apr 04, 2020 6:34 pm

Re: class problem

Post by Möve »

The class.lua code is written for Lua 5.3 and not for Lua 5.1. In Lua 5.1 don't exists a destructor for tables. It will not work as assumed.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 2 guests