Friday, October 06, 2006

Fixed class version problems

For some reason the bex-1.1.jar released on Oct 1th only worked with JDK 1.6. With older JDKs it failed with: Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file. I did a rebuild and uploaded a new bex-1.1.jar. Now it works in JDK 1.5 or later. It still fails to start with 1.4.2 since the new support for .bexrc uses System.getenv, which conveniently throws a java.lang.Error in JDK 1.4. This will hopefully be fixed in the next release 1.1.1. Other known bugs with release 1.1 are that \" or \$ character sequences are not allowed in multiline strings.

Sunday, October 01, 2006

Bex 1.1 released

I happy to announce that bex 1.1 is out and available for download. I decided to follow the release early, release often principle, so this release doesn't contain that much new. The biggest change is the support for embedded expressions in strings. This feature was requested by a few people and I needed it myself as well. So now you can write things like:

foo = "world"
print("hello ${foo}")

Inside the expression quotes ${} you can have basically any valid bex expression. Combined with multiline strings, this feature makes it very convenient to generate formatted text. Full list of changes is availbale at sourceforge.

I also updated the manual to describe the currently supported built-ins and extensions. Happy scripting!