|ANN: Ctalk 0.0.55 2015-05-27 Released email@example.com (2015-05-30)|
|Date:||Sat, 30 May 2015 00:11:49 -0400 (EDT)|
|Posted-Date:||30 May 2015 00:11:49 EDT|
Ctalk release 0.0.55 2015-05-26 adds overloaded math operators for
String, Collection, and Key objects, and members of their subclasses.
The overloaded operators provide a compact way to manage object
references. Among other uses, the references can act as ad-hoc
iterators, as in programs like this one.
List new aList;
Key new aKey;
aList push "item1";
aList push "item2";
aList push "item3";
aKey = *aList;
printf ("%s\n", *aKey);
} while (++aKey);
Note that *aList refers to the first member of the list, which is a
collection key, while *aKey refers to the key's content, which is a
String object. So an expression like **aList returns the first String
The source code for this release is downloadable at:
Also new in this release are many methods, like String : chomp and
Object : isSubclassOf, as well as the methods that overload math
operators, including +, -, ++, --, +=, -=, !, and *. Methods in the
Collection hierarchy are now more consistent, and a few duplicate
methods were removed.
There's also an upgraded version of the, "methods," utility, and the
chaser.c example program, which displays a side scrolling message in a
To find out more the recent Ctalk releases, check out the Ctalk Wiki,
Ctalk Mailing List: If you would like to receive announcements of Ctalk
releases by e-mail, you can subscribe to the ctalk-announce mailing list. For
information, refer to the list information page at https://lists.sourceforge.net
Return to the
Search the comp.compilers archives again.