What is Lua++?
Lua++ is a fast, object-oriented programming language derived from Lua 5.1. Its goal is to bring all of today's modern features to Lua while having energy efficiency in mind.
class Triangle {
base: integer,
height: integer,
constructor(base: integer, height: integer)
self.base, self.height = base, height
end,
const function area(): integer ->
return self.base * self.height / 2
}
print(Triangle(3, 4).area())Last updated