Page 2 of 2
Re: Standard class API
Posted: Fri Jun 24, 2011 7:45 am
by bartbes
Alright, I took the results from the poll, updated the wiki page and created
a github repo where we can work on it.
Everyone who wants to participate, preferably people who write publicly available class libraries, just ask if you want in, I'll get you listed and repo access.
Re: Standard class API
Posted: Fri Jun 24, 2011 8:42 am
by Robin
Although I haven't written one of the class libraries, I'd like to help on this project.
As for the function name, we can't use Class or class, since both are used by one or more of the libraries. Perhaps the library could provide a table "common", with a function "class", so the example could be: Tree = common.class("Tree", Tree).
Re: Standard class API
Posted: Fri Jun 24, 2011 8:49 am
by bartbes
I actually used common-class in the example in the repo
.
Re: Standard class API
Posted: Fri Jun 24, 2011 9:00 am
by Robin
bartbes wrote:I actually used common-class in the example in the repo
.
I know, I read that.
But common-class is not a valid identifier, while common.class is (well, not really, but you know what I mean).
EDIT: BTW, how is the actual back end selected? Automatically? Explicitly specified by the lover?
Re: Standard class API
Posted: Fri Jun 24, 2011 9:12 am
by bartbes
Back-end? The front end is provided by one of the libs, so slither, for example, could have a switch that would make it export this.
Re: Standard class API
Posted: Fri Jun 24, 2011 10:38 am
by Ensayia
Is there any way someone could break down exactly what all of this means for a semi-newbie programmer like myself? What exactly is this doing for LOVE?
Perhaps I am being thrown off by the use of the word 'class', which I've only seen in Object oriented languages. It's my understanding that Lua is not OOP.
Re: Standard class API
Posted: Fri Jun 24, 2011 10:45 am
by Robin
Ensayia wrote:Is there any way someone could break down exactly what all of this means for a semi-newbie programmer like myself? What exactly is this doing for LOVE?
It means that libraries don't have to pick a class system, which would otherwise result in needing to have a ton of class systems for large projects using multiple libraries
Ensayia wrote:It's my understanding that Lua is not OOP.
Lua
is object oriented, but it doesn't provide a standard way of making classes and objects. That is where the lover-made libraries come in (SECS, MiddleClass, Slither, hump.class, ...). The thing is, they each have different syntax and ways of doing things, which means problems if you have to use more than one at the same time.
Re: Standard class API
Posted: Wed Jan 25, 2012 11:13 pm
by gfreak
dead?
i want to use it :-)
Re: Standard class API
Posted: Thu Jan 26, 2012 10:11 am
by bartbes
It was implemented in MiddleClass, hump.class, SECS and Slither.