[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Ideas for sugary 'new object' syntax ?
- From: "kaishaku13" <kaishaku13@...>
- Date: Wed, 13 Mar 2002 23:07:51 -0000
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