Page 1 of 1

[library] Upperclass.lua

Posted: Mon Jan 05, 2015 5:07 am
by rdlaitila
Hello All,

Presenting Upperclass, a Lua Class Implementation for the privileged :cool:

https://github.com/admin36/lua-upperclass

Although many other class implementations exist, upperclass provides additional class features such as:
  • Class Member Scopes public, private, protected allowing tailored access to class members from inside/outside of classes
  • Strict Class Property Member types that support all available lua types string, boolean, number, table, userdata and behavior to fail when property types are violated
  • Ability to utilize metamethods __index and __newindex within your class definition to build custom class behavior (most other class libraries prohibit use of __index and __newindex
My library fits my needs. I am looking for specific feedback to determine if this library is ready for community consumption and any/all other feedback.

:ultrahappy:

Re: [library] Upperclass.lua

Posted: Mon Feb 02, 2015 12:58 pm
by rdlaitila
0.3.1 Released!

https://github.com/admin36/lua-uppercla ... /tag/0.3.1

Feedback welcome and appreciated!

Re: [library] Upperclass.lua

Posted: Fri Feb 06, 2015 11:26 pm
by I~=Spam
Very nice! I have been wanting somthing just like this! :awesome: (But not quite enough to make it myself :P)

Re: [library] Upperclass.lua

Posted: Sun Feb 08, 2015 1:13 am
by rlaitila
Thanks I~=Spam!

Just curious, what features were you looking for specifically? In my case many of my projects and libraries needed a class system with strict typing and scoped members which is why I choose to start the daunting task of building a class library that provided such features.

I have hopes to integrate additional features such as:

- Interfaces
- Enums
- User defined error handling
- Auto generated accessors
- Property member multiple types
- Property member type of another upperclass class

But unless the community request such features, I will wait until I need them to begin the development of them.

Anyway, I hope you enjoy upperclass. Let me know if you have any trouble/bugs.