Hilfe Bug:
Pike v7.6 release 112 running Hilfe v3.5 (Incremental Pike Frontend)
mixed a=lambda(string s){ string k,b; sscanf(s,"%s=%s",k,b); };
Compiler Error: 1:Missing ')'. Compiler Error: 1:syntax error, unexpected '(', expecting TOK_LEX_EOF or '{' Compiler Error: 1:syntax error, unexpected ')', expecting ';' or ',' Compiler Error: 1:syntax error, unexpected TOK_SSCANF Compiler Error: 1:syntax error, unexpected '}' Compiler Error: 1:Missing ';'. ---------------------------------------------------------------------------- --------------------------------------- put these code in a file, and run, no error, see following: ==================================================================
_typeof Bug:
void main() { mapping m=([]); mixed a=lambda(string s){ string k,b; sscanf(s,"%s=%s",k,b); m[k]=b;}; mixed b=lambda(string s){ string k,b; sscanf(s,"%s=%s",k,b);}; write("%O\n",_typeof(a)); write("%O\n",_typeof(b)); }
$ pike t.pike function function(string : zero) ---------------------------------------------------------------------------- --------------------------------------- ^--------not same!? They should be same I think.
Xuesong Guo