Skip to content

class, support multiple inheritance, all in one function, tool for overriding operators

License

Notifications You must be signed in to change notification settings

TehnoTheDragon/nex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nex

Lua module for creating classes and work with them

Example

local class = require('nex')

local Square = class "Square" {} -- class "Square" {} == class("Square")({})

function Square:init(width, height)
    self.width = width
    self.height = height
end

function Square:area()
    return self.width * self.height
end

local mySquare = Square(50, 10)
print(mySquare:area())

Wiki: Learn More

nex.lua have few bugs due to it was generated from nex.luau.

About

class, support multiple inheritance, all in one function, tool for overriding operators

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published