>>   menuitem.caption
>> instead of
>>   get menu item caption (menuitem)
>>
>>   heroes[who].stats[stat.hp] += x
>> instead of
>>   set hero stat(who, stat:hp, get hero stat(who, stat:hp) + x)
>> and so on.
>
> *James falls on the floor and twitches with joy*


Definitely this. It can even function just as syntactic sugar,
translating "menuitem.caption" to "get menu item caption (menuitem)";
that alone would be much more self-documenting.

Since you are approaching object-oriented programming a little bit,
what about accessing methods this way? Like:
      heroes[who].moveTo(x, y)

It seems like Ralph implied this in his comments, but the examples
given were just for data (not methods). Where you planning on
extending this to methods too?

-->Seth
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to