pike.git
/
CHANGES
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/CHANGES:73:
any need to terminate them with a semicolon. o Anonymous class definitions are now always expressions. o Function local class definitions are now statements (and not expressions). This means that there is no longer any need to terminate them with a semicolon. o Complain about shadowed variant functions.
+
o Syntax for generator functions added.
+
+
continue is now treated as a modifier, and causes such functions
+
to become generator functions, where calling the function sets
+
up a restartable function context.
+
+
continue may also preceed return statements, which causes
+
the generator function state to be saved before returning.
+
+
Alternatively the "function" Pike.yield() may be used to return
+
a value, and restart with a value from the restarter.
+
+
Restartable functions get the type signature
+
+
X fun(mixed|void value, function(mixed|void: void)|void resume_cb)
+
+
where X is the declared return type of the generator function,
+
value is the value to be returned by Pike.yield(), and resume_cb
+
is a function that will be called at the yield point.
+
o Machine code support for more architectures. There's now machine code support for arm32 and arm64. o Fixed multiple integer over- and underflow bugs. o Extended sscanf %O sscanf() is now able to parse all base types that sprintf %O can output. It can now also parse most literal constants pike accepts,