lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Just curious what clever methods for object
instantiation people have come up with..

I currently use :
foo = new_ObjectName(params)

I suppose you could make a 'new' global
and do something like new.Object...

Or possibly have a global tag for each tag
type you have which would hold 'static methods'
and do Object.New or Object.Create...

Those are my only ideas, and I'm wondering if
there are some tricks to the lua syntax that
might allow something more... 'sugary' to users