Moto 0.20.0 Beta 1

David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Wed, 28 May 2003 22:21:13 -0400
Newsgroups gmane.comp.lang.moto.devel
Message-ID <[email protected]>
Sorry for the delay! Stefano finished all the coding for this beta over 
a week ago and I've just been too backed up on my lousy contract to put 
the build together :) It may be downloaded today from 
http://projectmoto.org/moto_0_20_0_eng_a.tar.gz ! For those that 
haven't been playing around on the moto_opo branch (now merged back 
into the main trunk) this release adds Operator Overloading for 
extension authors to moto ! And it provides a slew of new overloaded 
operations to the utility classes you can try out!

So instead of this:

Object o = stab.get("foo")

you can say this:

Object o = stab["foo"]

and instead of this:

vector.put(27,"foo");

you can say this:

vector[27] = "foo";

Everybody be sure to thank Stefano for all his hard work bringing this 
killer new feature to moto!

There are a few changes that are not backwards compatible to previous 
releases. Specifically Intset and Stringset have been renamed IntSet 
and StringSet respectively. I figure its best to do this sort of 
housekeeping now ... sorry if I broke anybody's code :) Shay, I 
remember you had some method names you wanted to change for consistency 
as well, let me know what those are and I'll try and get tose changes 
in.

Anyway, here is the full list of changes included in this beta!

-Dave

New Features (Stefano!)
- Added support for extension authors to overload operators in moto
- Added set operation functions (and operators) to StringSet and IntSet
- Added overloaded operators (+ += ++ - -= -- eq ne lt lte gt gte [])
- Added [] and + operators for class String (in place for code in
motoX.c)
- Added [] operator for class Vector
- Added [] operator for class SymbolTable
- Added ++ operator for class Enumeration
- NEWS and ChangeLog file updated

Bugs Fixed
- Fixed a bug that would cause a parse error when someone tried to 
instantiate an empty array in-line
- Improved performance of interpreter with new version of 
moto_createMotonameForFn