Git Product home page Git Product logo

lua-class's Introduction

๐Ÿ’ซ About Me:

๐Ÿค“ I've started with game development when I was 12 years old
๐Ÿ“ Currently I'm a Senior Software Engineer ๐ŸŒฑ I'm currently learning about data science and machine learning
๐Ÿ”ญ I'm currently working on Layux (my company)
๐Ÿ’ก I'm Looking to collaborate on game-related projects
๐Ÿ’ฌ Ask me about any of the tools you see on my profile or my organizations profiles.
โšก๏ธ Most of my public job is available on my organizations

๐ŸŒ Socials:

LinkedIn Twitch

๐Ÿ’ป Tech Stack:

Java Kotlin Lua TypeScript AWS Cloudflare Datadog Google Cloud Vercel Firebase Shell Script Python Go C++ GraphQL JavaScript CSS3 Apollo-GraphQL Express.js Django DjangoREST Gatsby Flutter Flask JWT MUI NodeJS Next JS NestJS NPM OpenCV GitHub Redux React React Router SASS RxJS Socket.io TailwindCSS Yarn Webpack Styled Components Strapi Apache Nginx AmazonDynamoDB ApacheCassandra MariaDB Redis Postgres MySQL SQLite MongoDB MicrosoftSQLServer TensorFlow Pandas NumPy Keras scikit-learn SciPy GIT LINUX CMake Docker ESLint ElasticSearch Gradle Kubernetes Notion Swagger Jira Babel

๐Ÿ“Š GitHub Stats:



๐Ÿ† GitHub Trophies

๐Ÿ” Top Contributed Repo


lua-class's People

Contributors

luminaire1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lua-class's Issues

Problem with constructors

I've tried to use this library but it looks like the constructors doens't work properly

they can't get the arguments i passed to them

code to reproduce:

class 'Player' {
	constructor = function(self, args)
                -- Here args should be a table, but it's nil
		for k,v in pairs(args) do
			self[k] = v
		end
		print("Hello!, I'm constructor")
	end,

	destructor = function(self)

	end,

	sayHello = function(self)
		print(self.name .. ": Hello!")
	end,
}

local eragon = Player {"_ERAGON_", "Test", "Arg 3", "Arg 4"}

eragon:sayHello();

and the error:

lua: s.lua:323: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
	[C]: in function 'pairs'
	s.lua:323: in function 'funct'
	s.lua:240: in function 'recursiveCall'
	s.lua:147: in function 'Player'
	s.lua:339: in main chunk
	[C]: ?
>Exit code: 1

Lua version used is Lua 5.1 the code is tested on both MTA and Scite program on windows

Support for anonymous classes

Would be great to have some support for anonymous classes that are returned like a table, this is helpful to allow local declaration for classes. One example would be:

local AwesomeClass = class {
    constructor = function(self, arg1, arg2, ...)
    end,
}

local myinstance = AwesomeClass("asd", false);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.