pike.git
/
CHANGES
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/CHANGES:1:
+
Changes since Pike 8.0.164
+
----------------------------------------------------------------------
+
+
Pike 8: Changes since Pike 7.8 ---------------------------------------------------------------------- New language features --------------------- o Added a way to access the local, and not the overloaded, implementation of a symbol. As an example, given the classes: | class Test | { | int a( ) { return 1; } | int b( ) { return local::a(); } // New | int c( ) { return a(); } | } | | class Test2 | {
-
+
| inherit Test;
| int a() { return 42; } | } Both Test()->b() and Test2()->b() will return 1, but Test2()->a() and Test2()->c() will return 42. o Added new syntax that can be used to return the current object as if it was a class it is inheriting The syntax is X::this, where X is the inherited class.