|
Justin
|
 |
« Reply #1 on: March 02, 2009, 09:44:37 pm » |
|
With the recent changes, there are fewer differences, but...let's see...
Using info: + Returns nil if the info does not exist (e.g, gameobj.info.something will always return -something-, instead of raising an error) + Easier to add/remove at runtime (because you do not have to create attribute accessors), no need to write code + AINFO is nicer than ASET? Maybe? - More typing (obj.info.something instead of obj.something) - Doesn't work with ALIST (yet)
Using attributes: + Less typing (just obj.something) - Have to define accessors if you want to use them outside the class - Raises errors if accessors are not defined (currently, the ASET command will not create attribute accessors for you)
That's all I can think of.
|