Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

slang-2.1.1 released

1 view
Skip to first unread message

John E. Davis

unread,
Jul 2, 2007, 1:29:15 PM7/2/07
to
Version 2.1.1 of the slang library is now available. See
<http://www.jedsoft.org/slang/> for basic information about the
library and its associated interpreter, and in particular
<http://www.jedsoft.org/slang/download.html> for downloading options.
The relevant MD5 sums are:

b95067bb1204fc18e7b9fc71ffc1f21b 2.1.0__2.1.1.diff.bz2
7c2ae45523a4c76ab05fe82cf125dc67 2.1.0__2.1.1.diff.bz2.sig
d42eea3f00a65e69f453911a48f0cb52 2.1.0__2.1.1.diff.gz
07d11e3e0e267d00ee336cb6bf5cdd20 2.1.0__2.1.1.diff.gz.sig
4465440c158a32aaebed6ef07e7408ac slang-2.1.1.tar.bz2
ae047379b9b0a836959e68bc03f0c208 slang-2.1.1.tar.bz2.sig
41f875c4cb830d38fcff57211ca29e6c slang-2.1.1.tar.gz
4db72473ffcf39e7785331e014da08ec slang-2.1.1.tar.gz.sig

This version is primarily a bug-fix release. While the 2.1 series is
binary compatible with 2.0, several new features have been added to
the language including:

1. Short circuiting boolean operators for scalar expressions:

if ((x == y) || (y == 3) && (x != 4)) ...

(orelse and andelse are deprecated)

2. Structure definitions allow embdedded assignment expressions:

s = struct {x = 3, name="foo", a = [1:10]};

3. Qualifiers (aka "keywords") added to the language:

save_file ("foo.c"; overwrite=1);
plot_points ([1:10], sin([1:10]); color="red", style="solid");

3. Expressions such as (a < b < c) now interpreted to mean
(a<b)and(b<c).

Note the use of "and" here and not the "&&" short-circuiting
version. This is because expressions such as this are not
confined to scalars but also apply to arrays.

4. New keywords: ifnot, then

ifnot may be used instead of !if, which has been deprecated.
For "then" see the next item.

5. Looping constructs support a "then" clause that will get
executed if the loop runs to completion, e.g.,

loop (20)
{
if (this ())
break; % The then clause will NOT get executed
}
then do_that ();

6. A floating point array of exactly N elements may be created
using the form [a:b:#N], where the elements are uniformly
spaced and run from a to b, inclusive.

7. References to array elements and structure fields are
supported, e.g., &A[3], &s.foo.

New modules include:

onig : oniguruma regular expression library
iconv: character set encoding module

New library functions for slsh (and applications that make use of this
library):

cmdopt : Parses command line options
readascii : Reads so-called ascii (column-oriented) data files in a
variety of formats.

For more information, see the documentation links at
<http://www.jedsoft.org/slang/>.

Thanks,
--John

0 new messages