pike.git
/
CHANGES
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/CHANGES:17:
http://pike.ida.liu.se/docs/reference/ o pike -x When starting pike with the -x parameter, the pike process will run the named script in Tools.Standalone, giving the rest of the arguments as command-line switches. This is a convenient way of running rsif (replace string in file) and pv (the image viewer you may be familiar with from Tools.PV). o unbug
+
Embryo of a Pike debugger. Not stable nor finished.
o Unicode 3.2.0 All charts have been updated to Unicode 3.2.0. This applies both to the Unicode module as well as to Pike-global functionality such as upper_case/lower_case. unicode_to_string() also has support for surrogate and byteorder make handling. o Extended random() random() now works on floats, arrays, multisets, mappings and objects in addition to integers.
pike.git/CHANGES:108:
Multiplying all elements in a by a constant: a[*] * 4711; Make an array of what sprintf("%O", a[n]) returns for all elements in a: sprintf("%O", a[*]); o Implicit lambda.
+
A convenient way to embed code that needs pre- and/or post-
+
initialization.
-
+
FIXME: Not stable. mast type here.
+
+
This example embeds OpenGL calls that modifies the matrix in an
+
implicit lambda that will save the matrix before execution and
+
restore it afterwards.
+
+
void PushPop( function f )
+
{
+
GL.glPushMatrix();
+
mixed err = catch(f());
+
GL.glPopMatrix();
+
}
+
+
PushPop() {
+
glTranslate( ((1.0-0.08)-pcs)/2, 0.0, 0.0 );
+
drawstuff();
+
};
+
+
o Access to hidden variables in surrounding scopes. Include the names of the surrounding classes themselves in the lookup for Foo::, to make it possible to adress hidden variables in the scopes of surrounding classes, e.g: class Foo { int i; void create (int i) {Foo::i = i;} }