435d4f446d7f488012228629049d2ee27d736e04
[supertux.git] / external / squirrel / HISTORY
1 ***version 3.0.4 stable***\r
2 -sq_deleteslot slot now pops the key in case of failure\r
3 -fixed bug when _get metamethod throws null\r
4 -fixed a bug in rstrip\r
5 -added some error handling\r
6 -minor bugfixes\r
7 \r
8 ***2012-06-19              ***\r
9 ***version 3.0.3 stable***\r
10 -improved error messages for _cmp(when a non integer value is returned) (thx Yexo)\r
11 -added class.newmember() built in method (thx Nam)\r
12 -added class.rawnewmember()  built in method (thx Nam)\r
13 -added sq_rawnewmember() (thx Nam)\r
14 -added sq_getversion()\r
15 -added sq_typeof()\r
16 -added sq_getclosurename()\r
17 -added file.close() in stdlib\r
18 -documented closure.getinfos() built-in method\r
19 -fixed string iteration doesn't return negative numbers for characters > 127\r
20 -fixed bug in tofloat() when converting a string with scientific notation without a decimal point (thx wr2)\r
21 -fixed potential infinite loop in array.sort() when the _cmp function is inconsistent (thx Yexo)\r
22 -fixed obscure bug in the compiler(thx yishin)\r
23 -fixed some minor bug\r
24 \r
25 ***2011-11-28              ***\r
26 ***version 3.0.2 stable***\r
27 -added sq_gethash API\r
28 -now array.sort() is implemented with heapsort\r
29 -now floats in scientific notation also accept numbers with no '.' (eg. 1e+6 or 1e6)\r
30 -fixed some warning\r
31 -fixed some documentation\r
32 -fixed bug in GC\r
33 \r
34 ***2011-09-08              ***\r
35 ***version 3.0.1 stable***\r
36 -added # as alternative symbol for "line comment"(mostly useful for shell scripts)\r
37 -added sq_throwobject() to throw an arbitrary object from the C API\r
38 -added alignement flag for userdata types, SQ_ALIGNMENT (thx Shigemasa)\r
39 -added rawset() and rawget() to class and instance default delegate\r
40 -changed bytecode format now ensures matching integer size and float size\r
41 -now inherited classes also inherit userdatasize\r
42 -added SQUIRREL_VERSION_NUMBER in squirrel.h and _versionnumber_ global symbol\r
43 -fixed sq_getmemberhandle\r
44 -fixed sq_getrefcount\r
45 -refactored some sqstdio code\r
46 -refactored some clone code\r
47 -refactored some stuff in the string lib\r
48 -added -s and -fno-exceptions in GCC makefile(better performance when using GCC)\r
49 \r
50 ***2011-03-13        ***\r
51 ***version 3.0 stable***\r
52 -added sq_getcallee()\r
53 -sq_getfreevariable() also works for native closures\r
54 -minior optimizations\r
55 -removed several warning when compiling with GCC 4.x\r
56 -fixed some errors in the documentation\r
57 -fixed bug when using SQUSEDOUBLE and 32bits intengers\r
58 -fixed bug when invoking generators with closure.call() (thx huntercool)\r
59 \r
60 ***2010-12-19                                           ***\r
61 ***version 3.0 release candidate 1(RC 1)***\r
62 -improved metamethods error handling\r
63 -added parameter 'isstatic' to _newmember metamethod(thx G.Meyer)\r
64 -added sq_getrefcount() to return number of refences from C++(thx G.Meyer)\r
65 \r
66 ***2010-11-07        ***\r
67 ***version 3.0 beta 3***\r
68 -license changed to "MIT license"\r
69 -added sq_resurrectunreachable() and resurrectunreachable()\r
70 -added callee() built in function, returns the current running closure\r
71 -added thread.getstackinfos()\r
72 -added sq_objtouserpointer()\r
73 -added sq_newtableex()\r
74 -various refactoring and optimizations\r
75 -fixed several 64bits issues regarding integer to string conversions\r
76 -fixed some bugs when SQUSEDOUBLE is used in 32bits systems\r
77 \r
78 ***2010-08-18          ***\r
79 ***version 3.0 beta 2.1***\r
80 -fixed bug in class constructor\r
81 -fixed bug in compound arith\r
82 \r
83 ***2010-08-12        ***\r
84 ***version 3.0 beta 2***\r
85 -class methods can be added or replaced after the class as been instantiated\r
86 -JSON compliant table syntax, this is currently an experimental feature (thx atai)\r
87 -sq_getsize() now returns userdatasize for classes and instances\r
88 -now setroottable() and setconsttable() return the previous value of the respective table\r
89 -fixed bug in compound arith operators when used on a free variable (thx ellon)\r
90 -fixed some x64 minor bugs\r
91 -fixed minor bug in the compiler\r
92 -refactored some VM internals\r
93 -documented sq_getmemberhandle, sq_getbyhandle, sq_setbyhandle to set and get value from classes\r
94 \r
95 ***2009-11-15        ***\r
96 ***version 3.0 beta 1***\r
97 -various refactoring and optimizations\r
98 -fixed bug in free variables (thx mokehehe)\r
99 -fixed bug in functions with default parameters (thx ara & Yexo)\r
100 -fixed bug in exception handling\r
101 -improved error propagation in _set and _get metamethods ( and 'throw null' for clean failure)\r
102 -added sq_getmemberhandle, sq_getbyhandle, sq_setbyhandle to set and get value from classes\r
103 \r
104 ***2009-06-30         ***\r
105 ***version 3.0 alpha 2***\r
106 -added real free variables(thx Paul Ruizendaal)\r
107 -added refactored function call implementation and compiler(thx Paul Ruizendaal)\r
108 -added sq_getfunctioninfo\r
109 -added compile time flag SQUSEDOUBLE to use double precision floats\r
110 -added global slot _floatsize_ int the base lib to recognize single precision and double precision builds\r
111 -sq_wakeupvm can now resume the vm with an exception\r
112 -added sqstd_format\r
113 -now blobs can be cloned\r
114 -generators can now be instantiated by calling sq_call() or closure.call()\r
115 -fixed debughook bug\r
116 -fixed cooroutine error propagation\r
117 \r
118 ***2008-07-23         ***\r
119 ***version 3.0 alpha 1***\r
120 -first branch from 2.x source tree\r
121 -added 'base' keyword\r
122 -removed 'delegate' keyword\r
123 -now compiled scripts are vararg functions\r
124 -added setdelegate() and getdelegate() table builtin methods\r
125 -added <=> 3 ways compare operator\r
126 -added lambda expression @(a,b) a + b\r
127 -added local function statement\r
128 -added array built-in map(),reduce(),apply(),filter() and find()\r
129 -generators hold only a weak reference of the enviroment object\r
130 -removed 'vargv' and 'vargc' keywords\r
131 -now var args are passed as an array called vargv(as a paramter)\r
132 -removed 'parent' keyword\r
133 -added class getbase() built in method\r
134 -instanceof doesn't throw an exception if the left expression is not a class\r
135 -lexical scoping for free variables(free variables are no longer in the second parameter list)\r
136 -sq_setprintfunc accept error func\r
137 -sq_geterrorfunc()\r
138 -added sq_arrayremove() and sq_arrayinsert()\r
139 -error() built in function(works like print but prints using the errorfunc)\r
140 -added native debug hook\r
141 \r
142 ***2008-02-17        ***\r
143 ***version 2.2 stable***\r
144 -added _newslot metamethod in classes\r
145 -added enums added constants\r
146 -added sq_pushconsttable, sq_setconsttable\r
147 -added default param\r
148 -added octal literals(thx Dinosaur)\r
149 -fixed debug hook, 'calls' and 'returns' are properly notified in the same number.\r
150 -fixed a coroutine bug\r
151 \r
152 ***2007-07-29          ***\r
153 ***version 2.1.2 stable***\r
154 -new behaviour for generators iteration using foreach\r
155 now when a generator is iterated by foreach the value returned by a 'return val' statement\r
156 will terminate the iteration but will not be returned as foreach iteration\r
157 -added sq_setclassudsize()\r
158 -added sq_clear()\r
159 -added table.clear(), array.clear()\r
160 -fixed sq_cmp() (thx jyuill)\r
161 -fixed minor bugs\r
162 \r
163 ***2006-08-21              ***\r
164 ***version 2.1.1 stable***\r
165 -vm refactoring\r
166 -optimized internal function memory layout\r
167 -new global symbol _version_ (is the version string)\r
168 -code size optimization for float literals(on 32bits float builts)\r
169 -now the raw ref API(sq_addref etc...) is fully reentrant.\r
170 -fixed a bug in sq_getdelegate() now pushes null if the object doesn't have a delegate(thx MatzeB)\r
171 -improved C reference performances in NO_GARBAGE_COLLECTOR builds\r
172 -sq_getlocal() now enumerates also outer values.\r
173 -fixed regexp library for GCC users.\r
174 \r
175 ***2006-03-19        ***\r
176 ***version 2.1 stable***\r
177 -added static class fields, new keyword static\r
178 -added 64bits architecture support\r
179 -added global slot _intsize_ int the base lib to recognize 32bits and 64bits builds\r
180 -added functions with fixed environment, closure.bindenv() built-in function\r
181 -all types except userdata and null implement the tostring() method\r
182 -string concatenation now invokes metamethod _tostring\r
183 -new metamethods for class objects _newmember and _inherited\r
184 -sq_call() sq_resume() sq_wakeupvm() have a new signature\r
185 -new C referencing implementation(scales more with the amount of references)\r
186 -refactored hash table\r
187 -new api functions sq_newslot(),sq_tobool(),sq_getbase(), sq_instanceof(), sq_bindenv()\r
188 -the api func sq_createslot was deprecated but still supported in form of C macro on top of sq_newslot\r
189 -sq_setreleasehook() now also works for classes\r
190 -stream.readstr() and stream.writestr() have been deprecated(this affects file and blob)\r
191 -fixed squirrel.h undeclared api calls\r
192 -fixed few minor bugs\r
193 -SQChar is now defined as wchar_t\r
194 -removed warning when building with -Wall -pedantic for GCC users\r
195 -added new std io function writeclosuretofile()\r
196 -added new std string functions strip(),rstrip(),lstrip() and split()\r
197 -regular expressions operators (+,*) now have more POSIX greedyness behaviour\r
198 -class constructors are now invoked as normal functions\r
199 \r
200 ***2005-10-02          ***\r
201 ***version 2.0.5 stable***\r
202 -fixed some 64bits incompatibilities (thx sarge)\r
203 -fixed minor bug in the stdlib format() function (thx Rick)\r
204 -fixed a bug in dofile() that was preventing to compile empty files\r
205 -added new API sq_poptop() & sq_getfreevariable()\r
206 -some performance improvements\r
207 \r
208 ***2005-08-14          ***\r
209 ***version 2.0.4 stable***\r
210 -weak references and related API calls\r
211 -added sq_objtobool()\r
212 -class instances memory policies improved(1 mem allocation for the whole instance)\r
213 -typetags are now declared as SQUserPointer instead of unsigned int\r
214 -first pass for 64bits compatibility\r
215 -fixed minor bug in the stdio stream\r
216 -fixed a bug in format()\r
217 -fixed bug in string.tointeger() and string.tofloat()\r
218 \r
219 ***2005-06-24          ***\r
220 ***version 2.0.3 stable***\r
221 -dofile() and loadfile() in the iolib now can decode ASCII, UTF8 files UCS2 big-endian and little-endian\r
222 -sq_setparamscheck() : now typemesk can check for null\r
223 -added string escape sequence \xhhhh\r
224 -fixed some C++ standard incompatibilities\r
225 \r
226 ***2005-05-15          ***\r
227 ***version 2.0.2 stable***\r
228 -performances improvements (expecially for GCC users)\r
229 -removed all dependencies from C++ exception handling\r
230 -various bugfixes\r
231 \r
232 ***2005-04-12            ***\r
233 ***version 2.0.1 stable***\r
234 -various bugfixes\r
235 -sq_setparamscheck() now allows spaces in the typemask\r
236 \r
237 ***2005-04-03            ***\r
238 ***version 2.0 stable***\r
239 -added API sq_gettypetag()\r
240 -added built-in function to the bool type(tointeger, tostring etc...)\r
241 \r
242 ***2005-02-27                                                   ***\r
243 ***version 2.0 release candidate 1(RC 1)***\r
244 -added API sq_reseterror()\r
245 -modified sq_release()\r
246 -now class instances can be cloned\r
247 -various bufixes\r
248 \r
249 ***2005-01-26        ***\r
250 ***version 2.0 beta 1***\r
251 -added bool type\r
252 -class properties can be redefined in a derived class\r
253 -added ops *= /= and %=\r
254 -new syntax for class attributes declaration </ and /> instead of ( and )\r
255 -increased the max number of literals per function from 65535 to 16777215\r
256 -now free variables have proper lexical scoping\r
257 -added API sq_createinstance(), sq_pushbool(), sq_getbool()\r
258 -added built-in function type()\r
259 -added built-in function obj.rawin(key) in table,class and instance\r
260 -sq_rawget() and sq_rawset() now work also on classes and instances\r
261 -the VM no longer uses C++ exception handling (more suitable for embedded devices)\r
262 -various bufixes\r
263 \r
264 ***2004-12-21         ***\r
265 ***version 2.0 alpha 2***\r
266 -globals scoping changed, now if :: is omitted the VM automatically falls back on the root table\r
267 -various bufixes\r
268 -added class level attributes\r
269 \r
270 ***2004-12-12         ***\r
271 ***version 2.0 alpha 1***\r
272 -codebase branch from version 1.x\r
273 -added classes\r
274 -added functions with variable number of parameters(vargc & vargv and the ...)\r
275 -0 and 0.0 are now considered 'false' by all conditional statements(if,while,for,?,do-while)\r
276 -added new api functions sq_newclass() sq_setinstanceup() sq_getinstanceup() sq_getattributes() sq_setattributes()\r
277 -modified api sq_settypetag()\r
278 \r
279 ***2004-11-01        ***\r
280 ***version 1.0 stable***\r
281 -fixed some minor bug\r
282 -improved operator 'delete' performances\r
283 -added scientific notation for float numbers( eg. 2.e16 or 2.e-2)\r
284 \r
285 ***2004-08-30        ***\r
286 ***version 1.0 release candidate 2(RC 2)***\r
287 -fixed bug in the vm(thx Pierre Renaux)\r
288 -fixed bug in the optimizer(thx Pierre Renaux)\r
289 -fixed some bug in the documentation(thx JD)\r
290 -added new api functions for raw object handling\r
291 -removed nested multiline comments\r
292 -reduced memory footprint in C references\r
293 \r
294 ***2004-08-23        ***\r
295 ***version 1.0 release candidate 1(RC 1)***\r
296 -fixed division by zero\r
297 -the 'in' operator and obj.rawget() do not query the default delegate anymore\r
298 -added function sq_getprintfunc()\r
299 -added new standard library 'auxlib'(implements default error handlers)\r
300 \r
301 ***2004-07-12        ***\r
302 ***version 1.0 beta 4***\r
303 -fixed a bug in the integer.tochar() built-in method\r
304 -fixed unary minus operator\r
305 -fixed bug in dofile()\r
306 -fixed inconsistency between != and == operators(on float/integer comparison)\r
307 -added javascript style unsigned right shift operator '>>>'\r
308 -added array(size) constructor built-in function\r
309 -array.resize(size,[fill]) built-in function accepts an optional 'fill' value\r
310 -improved debug API, added sq_getclosureinfo() and sq_setnativeclosurename()\r
311 \r
312 ***2004-05-23        ***\r
313 ***version 1.0 beta 3***\r
314 -minor vm bug fixes\r
315 -string allocation is now faster\r
316 -tables and array memory usage is now less conservative(they shrink)\r
317 -added regular expression routines in the standard library\r
318 -The 'c' expression now accepts only 1 character(thx irbrian)\r
319 -multiline strings <[ ]> have been substituted with C# style verbatim strings (eg. @"string")\r
320 -added new keyword 'parent' for accessing the delegate of tables and unserdata\r
321 -The metamethod '_clone' has been renamed '_cloned'\r
322 -the _delslot metamethod's behaviour and prototype have been changed\r
323 -new default function in the integer and float object 'tochar()'\r
324 -the built-in function chcode2string has been removed\r
325 -the default method [table].getdelegate() has been removed\r
326 -new api sq_rawdeleteslot()\r
327 -new table built-in method rawdelete(key)\r
328 -the dynamic mudule loading has been removed from the standard distribution\r
329 -some optimizations in the VM\r
330 \r
331 ***2004-04-21        ***\r
332 ***version 1.0 beta 2***\r
333 -minor compiler/parser bug fixes\r
334 -sq_newclosure has a different prototype, the "paramscheck" of paramter has been moved to the new function sq_setparamscheck()\r
335 -sq_setparamscheck allows to add automatic parameters type checking in native closures\r
336 -sq_compile() lost the lineinfo parameter\r
337 -new api sq_enabledebuginfo() globally sets compiler's debug info generation\r
338 -added consistency check on bytecode serialization\r
339 -fixed += operator, now works on strings like +\r
340 -added global slot in the base lib _charsize_ to recognize unicode builds from ascii builds runtime\r
341 -added registry table\r
342 -new api call sq_pushregistrytable()\r
343 -added type tag to the userdata type sq_settypetag()\r
344 -sq_getuserdata now queries the userdata typetag\r
345 -the built in function collect_garbage() as been renamed collectgarbage() for consistency reasons\r
346 -new standard libraries(sqlibs are now obsolete)\r
347 \r
348 ***2004-02-20        ***\r
349 ***version 1.0 beta 1***\r
350 -fixed a bug in the compiler (thanks Martin Kofler)\r
351 -fixed bug in the switch case statement\r
352 -fixed the _unm metamethod\r
353 -fixed minor bugs in the API\r
354 -fixed automatic stack resizing\r
355 -first beta version \r
356         first pass code clean up in the VM and base lib\r
357         first pass code coverege test has been done on VM and built-in lib\r
358 -new VM creation API sq_open() sq_close() (sq_newvm and sq_releasevm are now obsolete)\r
359 -new api allows to specifiy a "print" function to output text(sq_printfunc)\r
360 -added some small optimizations\r
361 -new cooperative multi-threading capabilities in the base library(coroutines), VMs are now a built in type("thread")\r
362 -new built in functions have been added for manipulating the new "thread" type\r
363 -friend virtual machines share the same root table, error handler and debug hook by default\r
364 -new compile time options\r
365 \r
366 ***2004-01-19       ***\r
367 ***version 0.9 alpha***\r
368 -fixed a garbage collection bug\r
369 -fixed some API bugs(thanks to Joshua Jensen)\r
370 -fixed tail calls (in the version 0.8 the tail call optimization was erroneously disabled)\r
371 -new function parameters semantic, now passing a wrong number of parameters generates an exception\r
372 -native closures have now a built in parameter number checking\r
373 -sq_rawget and sq_rawset now work also on arrays\r
374 -sq_getsize now woks also on userdata\r
375 -the userdata release hook prototype is changed(now passes the size of the userdata)\r
376 -the lexer reader function now returns an integer instead of a char that allows better error checking on the input(thx Joshua Jensen)\r
377 -faster compiler\r
378 -try/catch blocks do not cause any runtime memory allocation anymore\r
379 \r
380 ***2003-12-06       ***\r
381 ***version 0.8 alpha***\r
382 -fixed a bug that was preventing to have callable userdata throught the metamethod _call\r
383 -fixed a garbage collection bug\r
384 -fixed == operator now can compare correctly different types\r
385 -new built in method getstackinfos(level)\r
386 -improved line informations precision for the debug hook\r
387 -new api call sq_compilebuffer()\r
388 -new built-in api function compilestring()\r
389 -new syntactic sugar for function declarations inside tables\r
390 -the debug API has been finalized\r
391 \r
392 ***2003-11-17       ***\r
393 ***version 0.7 alpha***\r
394 -fixed critical bug SQInteger the tail call system\r
395 -fixed bug in the continue statement code generation\r
396 -fixed func call param issue(thanks to Rewoonenco Andrew)\r
397 -added _delslot metamethod(thanks to Rewoonenco Andrew)\r
398 -new multiline string expression ( delimited by <[ and ]> )\r
399 -normal strings ("") do not allow embedded new line anymore\r
400 -reduced vm memory footprint(C refs are shared between friend VMs)\r
401 -new api method sq_deleteslot()\r
402 -new debug hook event 'r' is triggered when a function returns\r
403 \r
404 ***2003-11-04       ***\r
405 ***version 0.6 alpha***\r
406 -fixed switch statement(was executing the default case after a break)\r
407 -sq_call() doesn't pop the closure (just the params)\r
408 -the vm execution can be suspended from the C API anytime (micro-threads)\r
409 -new api calls sq_suspendvm() sq_wakeupvm() sq_getvmstate() and sq_reservestack()\r
410 \r
411 ***2003-10-13       ***\r
412 ***version 0.5 alpha***\r
413 -fixed some minor bug\r
414 -tested with non ASCII identifiers in unicode mode(I've tried chinese chars)\r
415 -added built-in function string.find()\r
416 -the built-in function array.sort() optionally accepts a cmp(a,b) function\r
417 -the debug hook function now has a new prototype debug_hook(event_type,sourcefile,line,functionname)\r
418 -fixed some debug info imprecision\r
419 \r
420 ***2003-10-01       ***\r
421 ***version 0.4 alpha***\r
422 -faster VM\r
423 -sq_call will pop arguments and closure also in case of failure\r
424 -fixed a bug in sq_remove\r
425 -now the VM detects delegation cycles(and throws an exception)\r
426 -new operators ++ and --\r
427 -new operator ',' comma operator\r
428 -fixed some expression precedence issue\r
429 -fixed bug in sq_arraypop\r
430 \r
431 ***2003-09-15       ***\r
432 ***version 0.3 alpha***\r
433 -fixed a bug in array::insert()\r
434 -optional Unicode core(define SQUNICODE or _UNICODE on Win32)\r
435 -sq_compiler uses a new reader function SQLEXREADFUNC\r
436 -the debug hook passes 'l' instead of 'line' for line callbacks\r
437         and 'c' instead of 'call' for call callbacks\r
438 -new array.extend() bulit-in function\r
439 -new API sq_clone()\r
440 \r
441 ***2003-09-10           ***\r
442 ***version 0.2 pre-alpha***\r
443 -new completely reentrant VM (sq_open and sq_close are now obsolete)\r
444 -sq_newvm() has a new prototype\r
445 -allocators are now global and linked in the VM\r
446 -_newslot meta method added\r
447 -rawset creates a slot if doesn't exists\r
448 -the compiler error callback pass the vm handle(thanks Pierre Renaux)\r
449 -sq_setforeignptr() sq_getforeingptr() are now public\r
450 -sq_resume() now is possible to resume generators from C\r
451 -sq_getlasterror() retrieve the last thrown error\r
452 -improved docs\r
453 \r
454 ***2003-09-06           ***\r
455 ***version 0.1 pre-alpha***\r
456 first release\r