Related articles |
---|
ANN: Ctalk 0.0.55 2015-05-27 Released rk3314042@gmail.com (2015-05-30) |
From: | rk3314042@gmail.com |
Newsgroups: | comp.compilers |
Date: | Sat, 30 May 2015 00:11:49 -0400 (EDT) |
Organization: | Compilers Central |
Keywords: | C, available |
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;
do {
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
in aList.
The source code for this release is downloadable at:
http://sf.net/projects/ctalk/files/Releases/ctalk-0.0.55-2015-05-26.tar.gz
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
terminal window.
To find out more the recent Ctalk releases, check out the Ctalk Wiki,
at: http://sf.net/p/ctalk/wiki/Home
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
/lists/listinfo/ctalk-announce/.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.