[SPL] Released SPL 0.9g

Clifford Wolf clifford at clifford.at
Wed Apr 19 16:59:28 CEST 2006


Hi,

I've released SPL 0.9g a few minutes ago. It can be downloaded (as
usual) from:

        http://www.clifford.at/spl/releases/

The bigger example applications have been moved to a seperate .tar.gz now.
That's why the SPL 0.9g sources are that smaller than the 0.9f release.

Most important changes since 0.9f:

 - Added a encode_mysql function to the mysql module.

	Always use this function instead of encode_sql() for quoting
	strings in MySQL queries unless you are running MySQL in the
	ANSI_QUOTES mode!

 - Added bindings for FANN library

 - Added #file-as-bytecode compiler pragma

 - Added 'rvalue to lvalue converter'

	With this it is possible to dereference rvalues (such as the return
	value of a function) without a temporary variable. E.g.:

		foo().bar().foobar = 42;

	With the 0.9f compiler that must have been something like:

		var temp1 = foo();
		var temp2 = temp1.bar();
		temp2.foobar = 42;

 - Added svn:ignore properties

 - Added $[ $] $@ and $# special variables

	$[ and $] are set to 1 within the first or last iteration of a
	foreach loop repectively.

	$@ is set to the data structure iterated over in the current
	foreach loop (e.g. usefull when not a variable name but a function
	call is used in the foreach declaration).

	$# contains the current index in $@ (only usefull for foreach[]
	loops where the iterator points directly to the value).

 - Added support for 'index.webspl' and 'index.websplb' to webspld

 - Added split mode regex (//S) support

	E.g. the following code snippets stores each line from demo.txt in
	a seperate array element:

		var lines = file_read("demo.txt") =~ /\n/S;

 - Added compiler support for the _ localization prefix

	The _ prefix can be used for localizing strings. E.g.:

		debug _"The sum of $a and $b is ${a+b}.";

	The entry in the .po file for that would be something like:

		msgid "The sum of {0} and {1} is {2}."
		msgstr "Die summe von {0} und {1} ist {2}."

	I've added a seperate section about internationalization and
	nationalization to the language reference manual.

 - Added 'splrun -X' mode (generate input for xgettext)

Happy hacking,
 - clifford

--
+++>+>++++++[<+++++++>-]<..>++>++++++[<+++++>-]<.>>++++++[<+++++++++++>-]<.
>++>>++++[<++++[<+++++++>-]>-]<<.>+>>++++[<++++[<++++++>-]>-]<<.++++++++.<-
---.>---.<<<<-.>>>>---.<---.<<.<+..>.>>---.>>++++>>++++[<++++[<+++++++>-]>-
]<<..----.<<<--------.<<++++..>>>>>+++++++...<<<<<-.>>>>.<++++.---.>+++..<+
+++++.+++.>--.<<<<.>>>>---.<++.<<<+.>>>>+.++++.---.<----.>>--.<<<<<.>.<----
..>.>+++++++++.>>>>>>++++[<++++[<+++++>-]>-]<<.+++++.<<<<<<+.>.>.>-.--.+++.
>++++++.+++.-------.<++.<<<.>.>>>.>-.<--.<<<<++..>.<---..>>>>>>>++++++++++.
 
There are some things a reboot won't fix.
 


More information about the SPL mailing list