Angelscript/docs/articles/changes2.html

3796 lines
225 KiB
HTML
Raw Permalink Normal View History

2021-04-12 18:25:02 +00:00
<HTML>
<head>
<title>AngelScript - Changes</title>
<style>
H1 { FONT-WEIGHT: bold; FONT-SIZE: 24px; FONT-FAMILY: Verdana; }
H2 { FONT-WEIGHT: bold; FONT-SIZE: 18px; FONT-FAMILY: Verdana; }
P { FONT-SIZE: 12px; FONT-FAMILY: Arial; }
BODY { FONT-SIZE: 12px; FONT-FAMILY: Arial; }
</style>
</head>
<body>
<h1>AngelScript Change Log</h1>
<h2>Version 2.35.0 - 2020/12/05</h2>
<ul>
<li>Bug fixes
<ul>
<li>asIScriptModule::GetGlobalVar was returning asSUCCESS when the given index was out of range
<li>Compiler would give an error when compiling functions returning a reference to a type that cannot be instantiated
<li>Fixed problem with LoadByteCode and shared classes (Thanks MrFloat)
<li>Fixed crash when using copy constructor declared as taking the object by value (Thanks Miss)
<li>Fixed memory invasion in compiler when compiling initialization lists with expressions using default arguments (Thanks jsd1982)
<li>Fixed memory invasion in compiler when compiling default arguments
<li>Fixed an issue in compiler with auto type and constness (Thanks Poly<6C>k Istv<74>n)
<li>Fixed symbol lookup of child type from within class method while compiling a construct call (Thanks Poly<6C>k Istv<74>n)
<li>Fixed crash after a discarding a module that compiled a shared object type that continues to be used by other modules (Thanks MrFloat)
<li>Funcdefs are marked with asOBJ_GC as they can form circular references when used with delegates (Thanks cmann)
<li>Fixed memory leak when using CompileGlobalVar to add a variable to a module with an object type (Thanks gmp3)
<li>Fixed error when loading bytecode that is using a list constructor for a value type (Thanks Phong Ba)
<li>Fixed memory invasion in compiler when compiling default argument after an argument with index operator (Thanks Phong Ba)
</ul>
<li>Library
<ul>
<li>asIScriptModule::GetFunctionByName now supports informing the scope in the name (Thanks Boost113)
<li>asIScriptModule::GetGlobalVarByName and GetTypeInfoByName also support informing the scope in the name
<li>asIScriptEngine::GetTypeInfoByName and GetGlobalPropertyIndexByName also support informing the scope in the name
<li>The default opAssign implementation for script classes will use the base class' opAssign method to copy inherited properties (Thanks hiago desena)
<li>Added config for 64bit x86 CPU on Haiku OS (Thanks Panagiotis Vasilopoulos)
<li>Added flag asOBJ_APP_CLASS_MORE_CONSTRUCTORS to inform when a class with defaulted constructors has additional non-trivial constructors (Thanks Miss)
<li>Added support for native calling conventions on Linux with ARM64 (Thanks Max Waine)
<li>Minor code changes to make the library buildable on DragonFly BSD (Thanks David Carlier)
<li>Improved time for compilation and loading pre-compiled bytecode for scripts with lots of type definitions (Thanks Len Deuel)
<li>Added config to make the library buildable for Linux with Elbrus 2000 CPU (Thanks Sattarov Ramil)
</ul>
<li>Library interface
<ul>
<li>asIScriptObject::CopyFrom now takes a const pointer
<li>RegisterGlobalProperty and RegisterObjectProperty now return the index of the property upon success (Thanks Marc Oude Kotte)
</ul>
<li>Virtual machine
<ul>
<li>asBC_Thiscall1 bytecode instruction is now capable of catching and translating C++ exceptions to script exceptions (Thanks Quentin Cosendey)
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Implemented to-string debug callback for datetime in asrun
<li>Fixed a problem due to daylight time when initializing a datetime object with specific date
<li>debugger add-on handles incorrect user commands better
<li>Implemented a version of exec for asrun sample that captures the standard output from the system command into a string
<li>Implemented getCreateDateTime and getModifyDateTime on the filesystem add-on
<li>Improved performance on array sort for arrays holding object types
<li>Fixed registration of the virtual property accessors in the game sample (Thanks Marc Oude Kotte)
<li>Fixed compilation error in scriptstdstring.cpp with AS_USE_NAMESPACE (Thanks Wipe)
<li>Added mingw makefile for console sample
<li>Registered the script array add-on in the console sample
<li>Added generic calling convention bindings for datetime and filesystem add-ons (Thanks gjl)
</ul>
<li>Project
<ul>
<li>Added option to the cmake project to allow linking statically with CRT on MSVC (Thanks Ilya)
<li>Added MSVC2019 project files
<li>Fixed cmake project for MSVC2019 (Thanks Wipe)
<li>Fixed gnuc makefile to detect arm target and add a compiler flag to accept implicit IT constructs in thumb mode (Thanks Maya Posch)
</ul>
</ul>
<h2>Version 2.34.0 - 2019/09/22</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed problem in compiler with bool property returned as reference in conditions (Thanks Miss)
<li>Fixed problem with catching exceptions in functions with multiple try-catch blocks (Thanks johannesg)
<li>Fixed read from unallocated memory in compiler when compiling default args (Thanks Patrick Jeeves)
<li>Fixed problem with doing a value assign from array holding handles (Thanks Aaron Baker)
<li>Fixed crash in compiler when there are multiple matching global functions for set accessors (Thanks Aaron Baker)
<li>Fixed crash that could happen when loading bytecode with shared classes that doesn't match current declared shared classes (Thanks MrFloat)
<li>Fixed assert failure when compiling a construct call with an anonymous initialization list (Thanks perost86)
<li>Fixed incorrect bytecode sequence when doing value assignment from handles for script classes using default assignment operator (Thanks Aaron Baker)
<li>Fixed problem with default arg not being able to access members in expression (Thanks Aaron Baker)
<li>Fixed crash when releasing engine with template specialization containing child funcdefs (Thanks BertS)
<li>Fixed asCALL_THISCALL_ASGLOBAL to function correctly with multiple inheritance (Thanks stalker#3829)
<li>Compiler now identifies match for functions taking object as inout ref when passing anonymous init list (Thanks Max Waine)
<li>Compiler now interrupts compilation after identifying error while compiling use of get property accessor (Thanks Patric Jeeves)
<li>Compiler no longer identifies global script functions as property accessors when this is turned off with asEP_PROPERTY_ACCESSOR_MODE (Thanks Aaron Baker)
<li>Fixed config for FreeBSD on non-x86 64bit targets (Thanks Greg V)
</ul>
<li>Library
<ul>
<li>asEP_PROPERTY_ACCESSOR_MODE has a new mode (3) to require property accessors to be flagged with 'property'
<li>Property accessors are validated upon declaration when flagged with 'property'
<li>asEP_PROPERTY_ACCESSOR_MODE is now set to 3 by default
</ul>
<li>Script language
<ul>
<li>Handles can now be declared read-only (Thanks Max Waine)
<li>Functions and methods intended to be used as virtual property should now be declared with a 'property' decorator
<li>Added non-reserved keyword 'property'
</ul>
<li>Library interface
<ul>
<li>Added asIScriptFunction::IsProperty
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Removed an invalid assert() statement in ExecuteString (Thanks Pto)
<li>Debugger commands 'n' and 'o' no longer prints 'No script is running' when used as first command
<li>Debugger command 'p' prints 'Invalid expression. No matching symbol' when the symbol doesn't exist in the current context
<li>Fixed missing check for failed memory allocation in CScriptArray::Precache (Thanks Zelerin)
<li>The string factory in the std::string add-on is now thread safe
<li>Enabled Virtual Terminal Processing in asrun for colored text on Windows console
</ul>
</ul>
<h2>Version 2.33.0 - 2018/12/22</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed crash when compiling is null comparison with ASHANDLE object without any opEquals operator (Thanks Boost113)
<li>Fixed bug with anonymous initialization lists when used to initialize value type passed by value to function (Thanks Patrick Jeeves)
<li>Loading bytecode that included use of template value types with a template type as argument crashed
<li>Compiler would crash on compiling ternary operator with anonymous list in one of the conditions (Thanks doctorgester)
<li>Fixed error when saving bytecode for scripts containing interfaces that derives from interfaces (Thanks y18a)
<li>Saving bytecode for a never returning function would cause assert failure (Thanks y18a)
<li>Fixed an error when compiling a class method call as post-op and the name matches a type name (Thanks y18a)
<li>Template types are now properly identified in separate namespaces (Thanks ASBai)
<li>Fixed memory build-up due to delayed cleanup when discarding modules with shared entities (Thanks y18a)
<li>opImplCast with variable type won't be used for non-ref types
<li>Fixed compiler error when both opConv and opImplConv are implemented (Thanks Ali Gerami)
<li>Fixed bug when loading bytecode containing shared interfaces with inheritance (Thanks Zakhar)
<li>auto declarations now works correctly with implicit handle types (Thanks y18a)
<li>Initializing an ASHANDLE type with overloaded opHndlAssign taking a var type as a handle wasn't done correctly
<li>Fixed loading byte code that uses external shared classes in namespace (Thanks y18a)
<li>The bytecode for external shared entities is no longer saved in the module when inherited from (Thanks y18a)
<li>Bytecode with external shared classes with virtual methods failed to load from bytecode (Thanks y18a)
<li>Fixed assert failure on call to opCast(?&out) with a non-variable expression (Thanks Miss)
<li>Passing a string literal to function expecting &out will now give compiler error (Thanks Jordan Verner)
<li>Fixed problem in compiler that didn't release a temporary variable when passing anonymous object to function expecting ?&in (Thanks y18a)
<li>Fixed a bug when loading bytecode having identical shared functions in different namespaces (Thanks y18a)
<li>Compiler will now detect name conflict between property and function
<li>asIScriptFunction::GetDeclaration(false, true) no longer includes the namespace before the function name for class methods (Thanks IronHawk)
<li>Fixed assert failure in asIScriptEngine::RefCastObject when object has multiple opCast methods (Thanks gjl)
<li>Compiler no longer accepts primitives in the right hand expression for handle assignments (Thanks gjl)
<li>Fixed compiler warning with use of asOFFSET on 64bit platforms (Thanks Miss)
<li>Fixed crash caused by CreateScriptObjectCopy when script class' constructor takes argument by handle (Thanks Boost113)
<li>Child funcdefs in templates will no longer convert parameter types to @const& (Thanks Dinkleberg)
<li>Fixed problem when compiling anonymous initialization list from default arg (Thanks Dinkleberg)
<li>Ownership of shared template instances wasn't correctly transferred when discarding modules (Thanks Jason Goepel)
<li>Fixed crash in compiler when matching anonymous list to function taking funcdef (Thanks Miss)
<li>Fixed assert failure in builder when compiling external shared interfaces with inheritance (Thanks Chisser98)
<li>Fixed crash in compiler when invalid script has inheritance from class with duplicate methods (Thanks Miss)
</ul>
<li>Library
<ul>
<li>Changed the compiler to do less copies of objects and especially string constants
<li>Engine error messages now include the symbol name for the error code for easier interpretation
<li>All methods for template instances now get unique functions to show the template instance as the object type (Thanks Miss)
<li>Template types can now be registered with methods taking parameters as &inout (Thanks ASBai)
<li>Implemented engine property asEP_GENERIC_CALL_MODE to make the generic calling convention treat handles the same way that the native calling convention do
<li>By default asEP_GENERIC_CALL_MODE is set to use the new behaviour
<li>Registered value types can now register GC behaviours to solve circular references involving these types
<li>Reduced the size of the saved byte code, especially when there are lots of functions without parameters
<li>AssignScriptObject will now set a script exception for ref types if asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE is used
<li>The copy constructor of script classes are now used properly by the compiler (Thanks MrFloat)
<li>Refactored how he compiler does symbol lookups to better handle namespace hierarchies and child types. (Thanks y18a)
<li>Added engine property asEP_INIT_STACK_SIZE to set the initial data stack size for contexts (Thanks Karoly Pinter)
<li>Added engine properties asEP_INIT_CALL_STACK_SIZE and asEP_MAX_CALL_STACK_SIZE to set initial and max call stack size for nested calls (Thanks Karoly Pinter)
<li>asIScriptContext::PushState will return an error if the call stack is already too big
<li>context's GetExceptionString, GetExceptionFunction, GetExceptionLineNumber will now return the last exception even if it has been caught
<li>CreateScriptObject no longer writes to the message callback if the object type doesn't have constructor/factory
</ul>
<li>Library interface
<ul>
<li>Implemented a callback to allow application to translate C++ exceptions thrown by registered functions (Thanks Boost113)
<li>Added the engine methods ForwardGCEnumReferences and ForwardGCReleaseAllReferences
<li>Included SetCircularRefDetectedCallback to allow application developers to easier identify the origin of circular references (Thanks baiyang)
<li>SetException now has an optional argument to allow exception to be caught or not
<li>Added WillExceptionBeCaught that the exception callback can use while inspecting the exception
<li>Added IsExplicit to asIScriptFunction
</ul>
<li>Script language
<ul>
<li>Now it is possible to resolve ambiguity with lambda functions by explicitly specifying the parameter types (Thanks Miss)
<li>The compiler will now give an error on bitwise operator with floats instead of silently converting to integer (Thanks Jason Goepel)
<li>Class constructors can now be declared with private and protected too (Thanks noizex)
<li>The correct resolution is now done for types implementing both opCast and opImplCast and the const overloads. The same for opConv and opImplConv
<li>Initialization lists will implicitly assume objects by handle if asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE is used (Thanks y18a)
<li>When unsafe references is allowed the stream operator (&lt;&lt;) can now be implemented on value types with correct behaviour for chained expressions (Thanks ASBai)
<li>Virtual property accessors must not have the same name as real property or function in the same scope
<li>Namespace and class with the same name must not have name conflicts between members as it would cause ambiguity in the symbol lookup (Thanks Phong Ba)
<li>Added support for try/catch statements
<li>Implemented support for flagging constructors as explicit
<li>Factories for ref types with only one argument can now be used for implicit type conversion too
<li>'auto' declarations will now always prefer handle if the type allows it (Thanks Miss)
</ul>
<li>Virtual machine
<ul>
<li>The asBC_REFCPY and asBC_RefCpyV instructions can now be used with value types too
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Added the methods isLink and getSize to filesystem add-on
<li>Added methods setDate and setTime to datetime add-on and operators to add seconds, compare, and determine difference in seconds
<li>The asrun sample now waits for user input before closing on any error when executed from file explorer on Windows
<li>filesystem's changeCurrentPath doesn't modify anything if the new path is invalid
<li>Implemented the methods makeDir, removeDir, deleteFile, copyFile, and move on the filesystem add-on
<li>Changed the clean-up of the string factory in the stdstring add-on to avoid crash if the script engine is stored in global singleton (Thanks howie_007)
<li>Fixed incorrect use of setlocale in parseFloat (Thanks Miss)
<li>Implemented a #pragma callback in the builder add-on
<li>asrun can now turn on debugging with #pragma debug (works the same as -d command arg)
<li>Fixed crash in debugger add-on when printing call stack in template function
<li>weakref now properly identifies different object instance when the address is the same as the previously freed object (Thanks y18a)
<li>meta data is now correctly extracted for class methods with decorators (Thanks Patrick Jeeves)
<li>CScriptBuilder now supports having multiple meta data blocks for each entity (Thanks noizex)
<li>CScriptHandle registers the ENUMREFS and RELEASEREFS gc behaviours
<li>CScriptArray, CScriptDictionary, CScriptGrid, and CScriptAny now support forwarding gc enum callbacks to value types with gc behaviour
<li>The array's and string's length property accessors is now only registered if AS_USE_ACCESSORS is defined to avoid conflict with the length() method
<li>Implemented the functions throw() and getExceptionInfo() that can be registered with RegisterExceptionRoutines
<li>dictionary add-on is better prepared to work with string type registered as reference type (Thanks Wracky)
<li>dictionary get method didn't always return true/false to indicate success or failure (Thanks Miss)
<li>Fixed a problem in filesystem's CopyFile on non-Windows platforms (Thanks cvet)
<li>Fixed string's findLastNotOf
<li>The datetime add-on now has a constructor to initialize date and time directly
<li>dictionary raises script exception if it cannot create a copy of a value being assigned
<li>array<T>::less will now take const handles when T is a handle
</ul>
<li>Project
<ul>
<li>Updated the cmake project for better usability (Thanks Solokiller)
<li>Added MSVC 2017 projects
</ul>
</ul>
<h2>Version 2.32.0 - 2017/12/16</h2>
<ul>
<li>Bug fixes
<ul>
<li>Registered funcdefs can now be used by shared script functions (Thanks Sir Ementaler)
<li>Fixed compiler error on MSVC2008 due to missing stdint.h (Thanks Friggle)
<li>Fixed a problem where the use of a get accessor could incorrectly reuse temporary variables (Thanks Phong Ba)
<li>Fixed the symbol search order so class name with same name as type is properly handled (Thanks Ansjh)
<li>Fixed compiler error in asFUNCTIONPR on MSVC2017 (Thanks Farbod)
<li>Fixed problem that could happen when saving bytecode that used shared functions (Thanks Phong Ba)
<li>Fixed problem with calling function expecting @&in where the argument was itself a & argument (Thanks Alexander Orefkov)
<li>Fixed crash when compiling expression using opIndex property accessor without arguments (Thanks Aaron Baker)
<li>Fixed compiler warning in assert (Thanks David Binderman)
<li>Fixed a couple of bugs on platforms with 4 byte booleans (Thanks Joseph Tilley)
<li>Fixed bug in parser that would produce misleading error message on invalid code (Thanks Kirill Artemov)
<li>Fixed assert failure when compiling ref cast and multiple matching cast operators are found (Thanks Jordan Verner)
<li>Template instances now correctly replaces child funcdefs
<li>Fixed bug where compiler didn't allow default arguments to be name of global functions (Thanks Aaron Baker)
<li>as_callfunc_x64_gcc.cpp now compiles correctly with address sanitize on g++ 5 (Thanks a light breeze)
<li>Fixed memory leak in RemoveGlobalProperty as the property wasn't uninitialized before it was removed (Thanks Quentin Cosendey)
<li>Fixed bug in compiler that would in complex expressions overwrite a temporary variable before it was used (Thanks Aaron Baker)
<li>Handles received by reference is now properly treated when passed to function expecting variant type (Thanks Quentin Cosendey)
<li>Fixed compiler error in derecated IsHandleCompatibleWithObject when using AS_DEPRECATED (Thanks Asu)
<li>Fixed assert failure when compiling comparison expressions with primitives smaller than 32bit (Thanks Asu)
<li>Fixed crash in compiler when compiling type conversion with invalid use of named arguments (Thanks Adrian Bibby Walther)
<li>Fixed assert failure when compiling expression with anonymous initialization list (Thanks Patrick Jeeves)
<li>Explicitly creating a copy of a const object to get a non-const handle would give a compiler error
<li>Value type without opAssign but with a copy constructor can now be implicitly copied in type conversions
<li>Saved byte code with scripts that used child funcdefs couldn't be loaded (Thanks Quentin Cosendey)
<li>Compiler was allowing to pass a const object by reference to a parameter expecting a non-const when using unsafe references
<li>Fixed buffer overflow when formatting error message with very long tokens
<li>RefCastObject was allowing explicit cast from base class to derived class even though the true type was of the base class (Thanks Miss)
</ul>
<li>Library interface
<ul>
<li>RegisterFuncdef, RegisterInterface, RegisterTypedef, RegisterEnum now returns the type id on success
<li>Added asEP_MAX_NESTED_CALLS to control the maximum number of nested calls that should be allowed
<li>Both Read and Write in asIBinaryStream can now return an error code to signal failure
<li>Added a new interface asIStringFactory to allow the application to hold the string constants in native format
<li>The RegisterStringFactory now takes a pointer to asIStringFactory instead of a function callback
<li>Removed deprecated code from previous versions
<li>Added support for registering class methods for composite objects without wrappers (Thanks Patrick Jeeves)
<li>Object properties can also be registered for composite objects
</ul>
<li>Library
<ul>
<li>Handles explicitly initialized with null in declarations no longer produce any bytecode (Thanks Solokiller)
<li>Saved bytecode now takes advantage of shared entities declared as external and includes less bytes
<li>The VM now raises an exception when application performs too many nested calls (Thanks Jordan Verner)
<li>Improved compiler error message when identifier before parenthesis doesn't evaluate to a function (Thanks Patrick Jeeves)
<li>Objects that rely on asGetActiveContext during clean-up can now do so even during exception handling
<li>String constants are now evaluated at compile time and a pointer to the application native format is kept in the bytecode
</ul>
<li>Virtual machine
<ul>
<li>The asBC_STR instruction no longer has any use and will be deprecated
</ul>
<li>Script language
<ul>
<li>Added the keyword 'external'
<li>shared enum can now be declared as external to explicitly include a shared enum from previously compiled module
<li>shared interfaces, classes, functions, and funcdefs can also be declared as external
<li>funcdefs can now be explicitly declared as shared
<li>Implemented support for typeless anonymous initialization lists (Thanks Patrick Jeeves)
<li>The compiler will implicitly convert string literals to local variables if a non-const reference is needed
</ul>
<li>Add-ons
<ul>
<li>Fixed bug in CScriptArray::RemoveRange (Thanks Michael Cohen)
<li>ScriptBuilder add-on now support metadata for enums too
<li>ScriptBuilder add-on properly handles 'external' and 'shared' keywords when parsing metadata
<li>WriteConfigToStream now resets the namespace for the string factory (Thanks Solokiller)
<li>Implemented sort in CScriptArray that takes as input a script function to compare two elements
<li>Dictionary storing a const handle now allows retrieving by value
<li>ConfigEngineFromStream takes an optional pointer to asIStringFactory
<li>scriptstdstring add-on implements a string factory for asIStringFactory with a cache
<li>WriteConfigToStream and ConfigEngineFromStream properly handles composite properties
<li>Debugger is capable of inspecting value of composite properties
</ul>
</ul>
<h2>Version 2.31.2 - 2016/12/18</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compiler warning about missing GNU-stack on gentoo Linux (Thanks James Le Cuirot)
<li>Fixed asGetTypeTraits on clang 3.8 (Thanks Ansjh)
<li>Fixed big endian errors in the compiler related to enum values (Thanks rfonseca)
<li>CreateScriptObject crashed when called for template value types (Thanks noizex)
<li>Fixed crash when discarding modules containing shared funcdefs (Thanks Violet CLM)
<li>Fixed big endian errors in the compiler related to implicit conversions of constants (Thanks rfonseca)
<li>Fixed bug with saved byte code not being portable between 32bit and 64bit platforms when including ChkNullS instruction (Thanks cvet)
<li>Fixed assert failure in compiler when compiling invalid switch case (Thanks Jordan Verner)
<li>Fixed bug in compiler when passing a @& argument to a function (Thanks IronHawk)
<li>Fixed bug when compiling get property accessor returning a registered type that is then implicitly converted to another (Thanks Phong Ba)
<li>Fixed assert failure when compiling boolean not operator on constant (Thanks gkfkdk404)
<li>Fixed incorrect compiler warning about too large value when assigning negative value to const int8/int16 (Thanks gkfkdk404)
<li>Compiler emits warnings if 64bit integer constants cannot fit when implicitly converted to smaller types (Thanks Sir Ementaler)
<li>Compiler didn't support implicitly converting constant uint64 values to uint32 values
<li>Fixed compiler error on Linux with non-x86 64bit platforms, e.g. arm64, mips, and s390x architectures (Thanks deveee)
<li>Fixed assert failure when compiling comparison operator on boolean constant (Thanks Autious)
<li>Fixed bug in bytecode serialization when adjusting pointer sizes for calls using asBC_ALLOC (Thanks Autious)
<li>Fixed problem with registering types using the asOBJ_IMPLICIT_HANDLE flag (Thanks cvet)
<li>Fixed assert failure on implicit conversion from 8/16 bit uint constant to integer (Thanks Sir Ementaler)
<li>opCast(?&out) on null handle now works without raising null pointer exceptions (Thanks Ansjh)
<li>Corrected as_config.h so Linux for 64bit ARM doesn't try to compile as_callfunc_x64_gcc.cpp (Thanks Igor Gnatenko)
<li>Fixed crash on GCC 6 due to CastToObjectType accepting this == null (Thanks Anjsh)
</ul>
<li>Library
<ul>
<li>Introduced a new keyword 'if_handle_then_const' that is used to tell template that a handle should be to const object
<li>Compiler now emits an error if an integer constant is larger than 2^64-1
<li>Non-pod value types are now allowed to be registered without default constructor, as long as at least one constructor is registered (Thanks Phong Ba)
<li>Reduced the number of calls to addref and release that the compiler includes in the bytecode in some cases (Thanks Thomas Grip)
<li>Non-assignment dual operators, e.g. +, now evaluates left to right even when using overloaded operators (Thanks Scott Bean)
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Fixed a minor bug in ExecuteString that could cause problem in rare cases (Thanks Solokiller)
<li>Fixed a bug in asrun example where the context was returned to the pool before being unprepared (Thanks noizex)
<li>Registered the opAssign method for weakref to allow value assignments for this type (Thanks noizex)
<li>Array add-on uses 'if_handle_then_const' on find methods (Thanks IronHawk)
<li>Fixed bug in script builder for meta data on functions with default arguments (Thanks Thomas Grip)
</ul>
</ul>
<h2>Version 2.31.1 - 2016/06/26</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed assert failure in compiler when attempting to implicitly convert primitive to function pointer (Thanks Sir Ementaler)
<li>Fixed compiler bug when passing funcdef by reference to a function (Thanks Sir Ementaler)
<li>The auxiliary pointer wasn't stored with object methods registered with the asCALL_GENERIC calling convention (Thanks Phong Ba)
<li>Fixed null pointer access crash in asBC_Thiscall1 when calling opIndex on a null pointer (Thanks gjl)
<li>The generic calling convention wasn't properly handling funcdefs in arguments or return type (Thanks Ansjh)
<li>Fixed null pointer access crash in compiler when compiling invalid script with value assign of function pointer (Thanks Phong Ba)
<li>Expressions like (expr ? null : null) is now compiled correctly (Thanks Sir Ementaler)
<li>auto var = null; no longer causes a crash in the compiler (Thanks Sir Ementaler)
<li>Compiler wasn't giving an error on 'void &' (Thanks Sir Ementaler)
<li>Fixed error when discarding a module if a context was still holding a reference to global var (Thanks GuyWithBeard)
<li>Offset for bytecode ClrVPtr wasn't adjusted correctly when saving/loading bytecode when the referred to variable was a null pointer (Thanks _Engine_)
<li>Fixed assert failure in compiler with AS_DEBUG when compiling anonymous function from class method (Thanks Phong Ba)
<li>Fixed crash in compiler when compiling 'null();' (Thanks Nikola Stojsic)
<li>Incorrect constructor could be used when declaring variable of object type and the initialization expression was of the same type but type had no copy constructor (Thanks loboWu)
<li>Returning a function pointer from a registered function wasn't working properly (Thanks Sir Ementaler)
<li>Function pointers in initialization lists would crash the application (Thanks Sir Ementaler)
<li>opCast can now be used on types registered with asOBJ_NOHANDLE too without crashing
<li>Function pointers wasn't properly handled in context's SetArg and GetReturn methods
<li>Fixed some big endian compatibility issues in compiler (Thanks rfonseca)
</ul>
<li>Script language
<ul>
<li>Enum to int32 conversion is now preferred over enum to int of other sizes in function overload resolution (Thanks Sir Ementaler)
<li>Anonymous objects initialized with initialization lists are now parsed as expression terms, rather than expressions by themselves
</ul>
<li>Library
<ul>
<li>Added asEP_HEREDOC_TRIM_MODE to allow application to decide how/if heredoc strings should be trimmed
</ul>
<li>Add-ons
<ul>
<li>Implemented parseUInt, findFirstOf, findLastOf, findFirstNotOf, findLastNotOf, insert, and erase for the string add-on
<li>Implemented removeRange for the array add-on
<li>Implemented insertAt for the array add-on that inserts all the elements from another array
<li>Fixed big endian compatility problems in script dictionary (Thanks rfonseca)
<li>Fixed compiler error in datetime add-on on gnuc (Thanks rfonseca)
</ul>
</ul>
<h2>Version 2.31.0 - 2016/02/26</h2>
<ul>
<li>Bug fixes
<ul>
<li>Compiler no longer crashes when assigning anonymous function to variable declared with auto type (Thanks glcolor)
<li>Compiler will no longer match funcdefs for datatype if the namespace is not the correct one
<li>Fixed bug with template value types and loading bytecode (Thanks glcolor)
<li>Fixed bug with namespace and class member initialization (Thanks Solokiller)
<li>Ternary condition can now return function pointers (Thanks Sir Ementaler)
<li>Fixed problem with named args and registered behaviours (Thanks Solokiller)
<li>Linux with PPC64 Little Endian is now working with AS_MAX_PORTABILITY (Thanks Rafael Fonseca)
<li>Functions with generic calling conventions now catch application exceptions (Thanks Jason Goepel)
<li>Fixed a bug in compiler with calling function with const reference and the function expected non-const reference (Thanks cvet)
<li>Fixed compiler error in as_memory.cpp on OpenBSD (Thanks David Carlier)
<li>Fixes for Big Endian CPUs (Thanks Rafael Fonseca)
<li>Fixed crash on Linux 32bit when application threw C++ exception and library had been compiled with optimizations
<li>Fixed bug in compiler when passing a handle from function argument to copy constructor (Thanks GGLucas)
<li>Compiler properly resolves namespace when calling base classes method and the base class is declared in a different namespace (Thanks Ansjh)
</ul>
<li>Library interface
<ul>
<li>Added GetAuxiliary to asIScriptGeneric and asIScriptFunction for retrieving the auxiliary object registered with the function (Thanks cvet)
<li>Added GetChildFuncdefCount and GetChildFuncdef to asIObjectType
<li>Renamed GetFuncDefFromTypeId to GetFuncdefFromTypeId for consistency
<li>It is now possible to register child funcdefs with RegisterFuncdef too
<li>Renamed asIObjectType to asITypeInfo
<li>Renamed asCLEANOBJECTTYPEFUNC_t to asCLEANTYPEINFOFUNC_t
<li>Implemented GetTypeInfoByDecl, GetTypeInfoByName, and GetTypeInfoById
<li>Implemented SetTypeInfoUserDataCleanupCallback
<li>Implemented asITypeInfo::GetEnumValueCount and GetEnumValueByIndex
<li>Deprecated GetObjectTypeByName/Decl, GetEnumValueCount/ByIndex, GetObjectTypeById, SetObjectTypeUserDataCleanupCallback in engine
<li>Deprecated GetObjectTypeByName/Decl, GetEnumValueCount/ByIndex in module
<li>Deprecated asIObjectType
<li>Changed GetEnumByIndex and GetTypedefByIndex to return an asITypeInfo and removed all the output parameters
<li>Implemented GetTypedefTypeId in asITypeInfo
<li>GetChildFuncdef now returns an asITypeInfo instead of asIScriptFunction
<li>Added GetFuncdefSignature to asITypeInfo
<li>Deprecated GetFuncdefFromTypeId
<li>Implemented GetParentType in asITypeInfo to allow querying the parent type for child funcdefs
</ul>
<li>Library
<ul>
<li>The asCALL_GENERIC calling convention now also supports storing an auxiliary pointer during registration (Thanks cvet)
<li>Improved parser error message when finding unexpected token to inform if the token is reserved or not (Thanks Solokiller)
<li>Implemented asEP_ALLOW_UNICODE_IDENTIFIERS (Thanks Alexander Orefkov)
<li>Added configuration in as_config.h to identify GNUC+Linux+PPC64 (Thanks Rafael Fonseca)
<li>Access mask in the engine now defaults to all bits set to make sure built-in functions are available to all modules (Thanks Solokiller)
<li>Included the asOBJ_FUNCDEF value to allow asITypeInfo to represent funcdefs too
<li>asOBJ_SCRIPT_FUNCTION has been removed
<li>RefCastObject can now be used for function pointers too
<li>Refactored the code with regards to how types are stored, specifically funcdefs, resulting in more unified code and less memory use
<li>Clang is now recognized in angelscript.h as supporting C++11 features (Thanks Derric McGarrah)
</ul>
<li>Script language
<ul>
<li>It is now possible to declare funcdefs as members of script classes
<li>Partially specializing the scope as the enum type when referring to enums in namespaces is now possible (Thanks cvet)
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Fixed compiler error in scriptstdstring.h when using AS_USE_NAMESPACE (Thanks Sami Vuorela)
<li>Fixed compiler error in aswrappedcall.h when using AS_USE_NAMESPACE
<li>WriteConfigToStream and ConfigEngineFromStream is properly handling child funcdefs
<li>Fixed problem in CScriptAny with constructing any object from primitive (Thanks gjl)
<li>ScriptHandle and Dictionary no longer need special code for function pointers
<li>Implemented CScriptDictionary::find for easier lookup of key/value pairs from application side
<li>dictionary::delete now returns a bool to indicate if the delete was successful or not
<li>Implemented CDateTime as a basic way of getting the time in scripts
<li>The asrun sample exposes the CDateTime add-on to scripts
<li>Implemented getInput in the asrun sample to allow it to get user input from standard input
<li>CScriptAny released asITypeInfo that it didn't own when a null handle was stored in it (Thanks GGLucas)
<li>CScriptBuilder incorrectly replaced /./ in include paths with nothing (Thanks Solokiller)
</ul>
<li>Project
<ul>
<li>Fixed cmake project files so library can be built as stand-alone without including the game sample (Thanks Wipe)
<li>Corrected the name of the shared object filename in the gnuc makefile (Thanks hasufell)
</ul>
</ul>
<h2>Version 2.30.2 - 2015/08/30</h2>
<ul>
<li>Bug fixes
<ul>
<li>Throwing exception from application code would cause a crash if the library had been built without optimizations on 64bit GNUC (Thanks dkrusu)
<li>Fixed crash with asCALL_THISCALL_ASGLOBAL and objects passed by value in argument (Thanks justin12343)
<li>Fixed bug in parser related to virtual properties and datatypes in namespaces (Thanks dkrusu)
<li>Fixed compiler bug with nested namespaces, when the outer namespace has not been explicitly registered (Thanks BasicMind)
<li>Fixed a bug with SaveByteCode on 64bit platforms when the script called constructor with primitive arg before object arg (Thanks Idarion)
</ul>
<li>Library
<ul>
<li>Built-in function names and object types are now prefixed with $ to make it quicker to identify them while loading bytecode
<li>Optimized logic for finding registered function/method in LoadByteCode (Thanks _Engine_)
<li>Reduced size of pre-compiled bytecode
<li>Optimized logic for determining typeId for object types, which can improve compile time and LoadByteCode for applications with a lot of different object types
<li>Improved thread safety to support multiple threads querying typeIds simultaneously
<li>Improved performance for saving bytecode that uses lots of global properties
<li>Improved the compiler to generate less temporary copies of objects
<li>Optimized some byte code sequences generated by the compiler
</ul>
<li>Script language
<ul>
<li>Added the non-reserved keyword 'function' that will be used to declare anonymous functions
<li>Anonymous functions can now be declared as part of expressions
<li>Initialization lists can be used to initialize variables declared as handles too (Thanks Peter Jensen)
</ul>
<li>Add-ons
<ul>
<li>ConfigEngineFromStream appropriately treats names of behaviour functions before registering them since they are now prefixed with $ in WriteConfigToStream
<li>Fixed compiler error in as_scriptbuilder.h on MinGW (Thanks DarkPizzaX)
<li>Minor code changes to CScriptDictionary (Thanks Sir Ementaler)
<li>The options argument in formatInt, UInt, and Float now has a default argument of an empty string
<li>On C++11 enabled compilers the string pool is now using the unordered_map container for faster look-up
<li>CScriptDictionary now uses a typedef for the key type to make it easier for applications that uses custom string types (Thanks Solokiller)
<li>Changed to use std::unordered_map in CScriptDictionary when C++11 is used
<li>The CScriptDictionary now caches its object type to avoid looking it up in the engine for each instance
</ul>
</ul>
<h2>Version 2.30.1 - 2015/07/03</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug in compiler when using compound assignment on virtual property on temporary variable (Thanks Violet CLM)
<li>Compiler no longer gives error when access global variable in global namespace from class in namespace (Thanks Sir Ementaler)
<li>Fixed bug with compiler accepting null handle in initialization lists that didn't support it (Thanks Phong Ba)
<li>Parser properly handles template type and non-template type of same name in different namespaces (Thanks Poly<6C>k Istv<74>n)
<li>Fixed problem with ternary conditions returning references to global variables (Thanks Jonathan Sandusky)
<li>Fixed bug with opIndex when global variable had same name as datatype in a different namespace (Thanks dkrusu)
<li>Saving bytecode that used templates with multiple subtypes is now working properly (Thanks Phong Ba)
<li>Fixed assert failure in compiler when creating delegate from temporary object (Thanks Solokiller)
<li>Fixed crash on Win64 when calling native function that takes object by value that requires clean-up after call and the function also return an object by value (Thanks Jason Goepel)
<li>Fixed a bug with native calling conventions on Win32 when using Clang with MinGW 4.7+ (Thanks Joshua Cearley)
<li>Fixed a null pointer access failure that could happen in asGetActiveContext (Thanks Gwinnell)
<li>Fixed compiler warnings in asGetTypeTraits on gnuc 5.1 (Thanks Boost113)
<li>Fixed a possible null pointer access while releasing a script function (Thanks Andreas Fobian)
<li>Fixed some compiler errors on Linux with ARM (Thanks Vincent Cheng and James Cowgill)
<li>Fixed compiler bug when using construct call for a reftype on an object with opConv(?&amp;out) (Thanks dkrusu)
<li>Fixed compiler bug that allowed class method handle to be converted to primitive (Thanks Solokiller)
</ul>
<li>Library
<ul>
<li>It is now possible to register member properties as references if the member should be dereferenced before access (Thanks cvet)
<li>Added supported for native calling conventions on Linux and Android with MIPS
<li>Improved performance for loading saved byte code (Thanks _Engine_)
<li>XBox 360 now supports 64bit integer arguments in native functions (Thanks Anthony Clark)
</ul>
<li>Virtual machine
<ul>
<li>Implemented asBC_Thiscall1 for faster calls to class methods that take an int argument and return a reference
</ul>
<li>Script language
<ul>
<li>for-loops now support multiple increment expressions separated by , (Thanks dkrusu)
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Fixed memory leak in serializer when using extra objects
<li>Fixed bug in serializer with incorrect refcount on registered types when restoring the script object that references them
<li>Serializer attempted to backup non-pod types that had no user type registered with bitwise copy potentially causing errors
<li>Added GetBuffer to the CScriptArray object (Thanks Solokiller)
<li>Added GetRef to the CScriptHandle (Thanks zerochen)
<li>Added formatUInt for strings (Thanks iraxef)
<li>Included asserts in CScriptAny to detect improper usage from application (Thanks Solokiller)
<li>Script array is now constructed even if the current script context has a script exception set (Thanks iraxef)
<li>Fixed a compiler problem in asrun when C++11 support is not available (Thanks Anthony Clark)
<li>Implemented GetAddressOfValue in the dictionary value and iterator to simplify inspecting the content with the debugger
<li>Added a Set/GetEngine to the CDebugger to hold an engine pointer that can be used by the callbacks
<li>The debugger's ToString method and Callbacks now take a expand members recursively
<li>Implemented DictionaryToString debugger callback in asrun sample (Thanks Anthony Clark)
<li>CScriptBuilder now does case insensitive compares for duplicate include files on Windows (Thanks Solokiller)
</ul>
<li>Project
<ul>
<li>Added meson project files (Thanks Igor Gnatenko)
<li>Improved the android project files
</ul>
</ul>
<h2>Version 2.30.0 - 2015/02/22</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug with use of scoped reference types declared in global variables (Thanks ic0de)
<li>Fixed bug when comparing two handles and one is a handle to a read-only object (Thanks mbwac)
<li>Compiler will now give error if there is an overflow when evaluating power-of in constant expression (Thanks ThyReaper)
<li>Funcdefs can now have template types with script classes as subtypes (Thanks Sir Ementaler)
<li>Fixed an incorrect error code when registering a template specialization and the template type instance already existed (Thanks glcolor)
<li>Template specialization failed to remove generated template instances that has been created as a consequence (Thanks Sami Vuorela)
<li>Engine detects if application attempts to register method or property for generated template instances (Thanks glcolor)
<li>Fixed bug with asOBJ_APP_ARRAY in arm and ppc64 calling conventions (Thanks Brandon Bare)
<li>Fixed bug in Linux arm hardfloat ABI (Thanks Brandon Bare)
<li>Fixed an assert failure in the compiler when compiling an assignment with non-temporary deferred arguments (Thanks iraxef)
<li>The constructor stubs for value template types didn't pop the object pointer from the stack (Thanks iraxef)
<li>GetFunctionByDecl wasn't able to find the global function if the name was prefixed with :: (Thanks Ser Ementaler)
<li>The compiler was producing wrong bytecode when calling asBEHAVE_IMPLICIT_REF_CAST on value type
<li>Fixed crash when script class contained value template type as member
<li>Class method can refer to base class' method with fully specified namespace (Thanks iraxef)
<li>It is possible to register an enum with the same name in a namespace after it has been registered in the global namespace (Simon Geilfus)
<li>No more memory build-up when the script has circular references between classes and templates (Thanks iraxef)
<li>Private class properties are not accessible from derived classes (Thanks iraxef)
<li>Fixed bug in compiler where default argument could use temp var used in previous arguments (Thanks Solokiller)
<li>Compiler didn't properly check the access masks for registered class methods (Thanks Solokiller)
<li>Directly calling a funcdef retrieved from member property accessor would get wrong arguments (Thanks Solokiller)
<li>Methods declared in mixins in namespaces weren't compiled with the correct namespace (Thanks Sir Ementaler)
<li>Fixed problem with compiler not detecting incorrect type when passing class method as argument to constructor (Thanks Poly<6C>k Istv<74>n)
<li>Fixed bug in asBC_u64TOd and asBC_u64TOf on non-MSVC compilers (Thanks Turo Lamminen)
<li>Fixed crash on iOS/arm64 with thiscall callback functions (Thanks _Engine_)
<li>Fixed incorrect compiler warning about converting to handle after get accessor (Thanks agentprog)
</ul>
<li>Library interface
<ul>
<li>Deprecated asBEHAVE_VALUE_CAST and asBEHAVE_IMPLICIT_VALUE_CAST
<li>asIScriptEngine::AssignScriptObject now returns an int with the success or error code
<li>The tokenLength arg for ParseToken is changed to asUINT
<li>Added asIScriptObject::GetWeakRefFlag
<li>Implemented asIScriptEngine::RefCastObject
<li>Deprecated asIScriptEngine::IsHandleCompatibleWithObject
<li>Implemented SetArgVarType to the context for calling functions with variable argument types
<li>Added ShutDownAndRelease to explicitly tell when the engine should be shut down, compared to simply releasing the reference
<li>Implemented support for user data in script object instances
<li>Included asIScriptFunction::IsProtected
<li>asIObjectType::GetProperty has an additional parameter to return if the property is protected
<li>Deprecated asBEHAVE_REF_CAST and asBEHAVE_IMPLICIT_REF_CAST
<li>Added engine property asEP_PRIVATE_PROP_AS_PROTECTED
</ul>
<li>Library
<ul>
<li>Improved the algorithm for verifying if script classes require garbage collection
<li>Added support for native calling conventions on PS Vita (Thanks Brandon Bare)
<li>GetModule and DiscardModule are now thread-safe (Thanks Brandon Bare)
<li>Returned declarations with namespaces no longer prefix symbols with :: when declared in the global namespace (Thanks iraxef)
<li>When compiling a default argument expression the namespace of the called function is used as default (Thanks iraxef)
<li>Implemented asEP_DISALLOW_EMPTY_LIST_ELEMENTS to allow application to disable empty elements in initialization lists (Thanks theoutfield)
<li>Application can now register types with asOBJ_IMPLICIT_HANDLE if this option is turned on
<li>Improved some compiler error messages
<li>Updated gnuc makefile to automatically retrieve version number from angelscript.h for the shared library file name (Thanks Cody Ferguson)
<li>Minor runtime optimizations have been made
<li>Changed SetLineCallback so that it is safe to call it from a second thread while the context is running (Thanks ziomau)
<li>Completely re-factored the way the memory management for the internal script code is done
<li>Discarding modules is much faster, and doesn't burden the garbage collector (Thanks ziomau)
<li>Compiler no longer warns on empty sections since this may be a valid situation (Thanks iraxef)
<li>When formatting type declarations for messages the namespace will always be included if different than the current namespace (Thanks Solokiller)
<li>Included check to avoid modifying template types registration after a template instance has already been generated
<li>module's GetFunctionByName/Decl, GetGlobalVarIndexByName/Decl, GetObjectTypeByName recursively search parent namespaces
<li>engine's GetGlobalPropertyIndexByName/Decl, GetGlobalFunctionByDecl, GetObjectTypeByName recursively search parent namespaces
</ul>
<li>Script language
<ul>
<li>The ternary condition operator can now be used as lvalue if both options are lvalues of the same type (Thanks Poly<6C>k Istv<74>n)
<li>opImplConv can now be used to allow implicit conversion to bool for registered value types
<li>imported functions can now be placed in namespaces too (Thanks cvet)
<li>Compound assignment operators can now be used with virtual properties
<li>Included 'protected' as reserved keyword
<li>Class members can now be declared as protected
<li>Script classes can now implement opCast and opImplCast to provide custom ref cast behaviours
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>The script array and grid add-ons avoid flagging themselves as garbage collected for handle subtypes that are known not to be garbage collected
<li>CScriptHandle, CScriptAny, and CScriptDictionary use the new RefCastObject to properly cast to all supported types of the contained handle
<li>The dictionaryValue was missing a copy opAssign method so it wasn't possible to directly assign one dictionaryValue to another (Thanks iraxef)
<li>The weakref is now a value template type
<li>The syntax for using weakref in script is much more like a normal handles
<li>Implemented a CScriptFileSystem add-on to complement the CScriptFile add-on
<li>Changed ContextMgr::AddContext to allow application to tell manager that it want to keep the context after execution
<li>Added ContextMgr::DoneWithContext to return the context after the application has retrieved what it wants from it
<li>Fixed the asrun sample so now returns the status from the script again
<li>Improved asrun to support international languages better when writing to the console on Windows
<li>Changed CScriptFile::ReadLine and ReadString to return the string by value instead of as an output parameter
<li>Fixed some compiler warnings on gnuc in the add-ons (Thanks Bertram25)
<li>dictionaryValue has better support for boolean values
<li>Added support for asrun to execute system commands
<li>Debugger now accepts namespace for printing variables
<li>CScriptBuilder expands relative paths to absolute paths before verifying if the include file is duplicate (Thanks cuipeng)
<li>Fixed WriteConfigToStream/ConfigEngineFromStream to keep the valid object type flags and properly handle namespaces (Thanks Solokiller)
<li>Fixed ScriptArrayIsEmpty_Generic that didn't set the return value (Thanks _Engine_)
<li>Improved WriteConfigToStream so that template types are fully registered before other types (Thanks Solokiller)
<li>Prepared CContextMgr for use with AS_MAX_PORTABILITY
<li>Fixed bug in dictionary's opIndex when generic calling convention was used
<li>Fixed bug in CScriptHandle when AS_MAX_PORTABILITY was used
</ul>
</ul>
<h2>Version 2.29.2 - 2014/10/21</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug when compiling expressions using opCall on objects returned by reference from previous call (Thanks Sir Ementaler)
<li>Empty initialization lists are now properly working where a repeat pattern is expected (Thanks cvet)
<li>Fixed bug when global variable expression had casts between script classes (Thanks cvet)
<li>Fixed incorrect warning on literal -9223372036854775808 (Thanks iraxef)
<li>Compiler was incorrectly accepting syntax as object@(expr) (Thanks iraxef)
<li>Taking the address of an imported function now works as it should (Thanks Wipe)
<li>Fixed crash in compiler when compiling initialization lists with 'null' as one of the elements (Thanks iraxef)
<li>Identity comparison on handle received as parameter by reference wasn't working (Thanks iraxef)
<li>Application no longer crashes if an asIObjectType is released after the engine has been released
<li>Template instances now receive the member properties that were registered for the template (Thanks Samichama)
<li>Template types can now use other template types as method arguments where the sub-types are shared (Thanks Samichama)
<li>Fixed bug in compiler with use of implicit value conversion and temporary variables (Thanks Jason Goepel)
</ul>
<li>Library interface
<ul>
<li>Improved compiler compatibility of asGetTypeTraits to support Xcode/Clang (Thanks PhilCK)
<li>Script interfaces now return the module that owns them with GetModule (Thanks cvet)
</ul>
<li>Library
<ul>
<li>Added asEP_DISABLE_INTEGER_DIVISION that makes all divisions with integer values result in doubles (Thanks Jason Goepel)
<li>Improved performance of shutting down the engine (Thanks ThyReaper)
<li>Compiler warns when variable in inner scope hides variable of same name in outer scope (Thanks carew)
<li>Compiler warns when overloading inherited class method and default args in the methods cause conflicts (Thanks Aaron Baker)
<li>Compiler automatically resolves ambiguous enum values on comparisons (Thanks Jason Goepel)
</ul>
<li>Script language
<ul>
<li>Script classes can now implement opConv and opImplConv to support type conversions
<li>Passing a non-lvalue expression to a &amp;out argument will now yield compiler error instead of warning
</ul>
<li>Virtual machine
<ul>
<li>Updated asBC_CALLBND so that imported functions can now be bound to application registered functions too (Thanks gjl)
</ul>
<li>Add-ons
<ul>
<li>The array and grid add-ons no longer set a script exception if the initialization list is empty
<li>Fixed problem with storing/retrieving enum values from the dictionary (Thanks iraxef)
<li>Concatenation with integers and string now properly supports 64bit types (Thanks iraxef)
<li>dictionary::get now supports retrieving stored handle by value if type is compatible (Thanks iraxef)
<li>CScriptBuilder::AddSectionFromMemory now has an optional lineOffset argument (Thanks Boost113)
<li>CScriptBuilder will report the correct path to the include files that fails to load (Thanks gjl)
<li>Fixed bug in CScriptFile when reading ints for least significant byte first (Thanks gjl)
</ul>
</ul>
<h2>Version 2.29.1 - 2014/07/20</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compiler assert failure with unsafe references and deferred arguments (Thanks AgentC)
<li>Fixed problem with enumerating entities after removing a config group (Thanks Robert42)
<li>Fixed buffer overflow problem when Prepare() with virtual script function near the end of the stack memory (Thanks GGLucas)
<li>Fixed parser bug when local variable had the same name as a type in different namespace (Thanks cvet)
<li>Fixed errors with saved bytecode when using template types declared in namespace (Thanks cvet)
</ul>
<li>Library
<ul>
<li>Improved compiler error messages
<li>The module's ResetGlobalVars uses the context callbacks to support debugging initialization of global variables without informing a pre-created context
<li>The context callbacks are disabled before destroying the engine to avoid creation of new contexts while cleaning up objects
<li>Added asEP_ALTER_SYNTAX_NAMED_ARGS to optionally support the previous syntax for named args
<li>asOBJ_TEMPLATE can now be used with value types too
</ul>
<li>Library interface
<ul>
<li>Added asGetTypeTraits&lt;T&gt;() as part of the official interface
</ul>
<li>Script language
<ul>
<li>Changed the syntax for named arguments to "arg: expr" to avoid confusion when local variable has the same name as the argument (Thanks Kevin Ingwersen)
<li>Added support for declaring classes as abstract to prevent instantiation (Thanks Scott Bean)
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Added null-pointer check in CDebugger::ToString and fixed some compiler warnings (Thanks Dominique Dumont)
<li>Array elements are initialized to zero by default (Thanks cvet)
<li>Fixed null pointer access bug in grid add-on (Thanks Bitsauce)
<li>GetTypeTraits&lt;T&gt;() has been removed from the helper add-on
<li>Replaced the helper function PrintException with GetExceptionInfo that returns the information in a string
<li>The asrun sample is now using the ContextMgr add-on to support co-routines
<li>The ContextMgr uses the RequestContext instead of CreateContext to take advantage of the context callbacks
<li>Fixed bug in closeTo math function when one of the arguments was 0
</ul>
</ul>
<h2>Version 2.29.0 - 2014/06/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>Function handles were incorrectly treated as handles in value assignment
<li>Fixed RWX section in as_callfunc_arm_gcc.S (Thanks Julian Ospald)
<li>Fixed assert failure with implicit cast and get accessor (Thanks Amer Koleci)
<li>Fixed opCall on global variable (Thanks gjl)
<li>Fixed crash when calling opCall on a property accessor on a global variable (Thanks gjl)
<li>Fixed bug in compiler where temporary variable could be overwritten when calling overloaded operators (Thanks Jason Goepel)
<li>Fixed bug in tokenizer for one line comments on the last line of a script (Thanks Jason Goepel)
<li>Fixed bug with explicit construct call and reference types (Thanks Roel Binnendijk)
<li>Fixed bug in GetDeclaration when returning the list pattern (Thanks agentprog)
<li>GetSubTypeId and GetSubType now works for registered template specializations too (Thanks Jason Goepel)
<li>Loading bytecode with funcdefs declared from script wasn't working identical to building from source (Thanks cvet)
<li>GarbageCollect(asGC_FULL_CYCLE | asGC_DESTROY_GARBAGE) will now properly destroy the garbage in the new generation too (Thanks Maciej Biedrzycki)
<li>Stack unwinding now works on Linux 64bit with native calling conventions
<li>Fixed bug in compiler that allowed expression with name of function without doing anything with it (Thanks iraxef)
<li>Engine no longer silently accept registering template methods where the template subtype is passed by value
<li>Mixin classes in parent namespace can now be properly included in a class (Thanks cvet)
<li>Compiler now gives an error when script declares handle to handle (Thanks iraxef)
</ul>
<li>Library
<ul>
<li>Added the flag asOBJ_APP_ARRAY to support registering types that are really C arrays
<li>The parameter names from the declaration are now stored in the functions (Thanks GGLucas)
<li>The parameter names are stored with the saved bytecode, unless debug information is stripped
<li>Improved C++ exception handling to avoid deleting object that was never returned (Thanks Poly<6C>k Istv<74>n)
<li>CreateScriptObject will return null if the object constructor throws C++ exception
<li>The template callback can now write error messages to facilitate the understanding of why a template cannot be instantiated (Thanks JaviCervera)
<li>Compiling the library with Sun CC for SPARC is now possible, though without native calling conventions (Thanks Andrey Bergman)
<li>Improved error message when trying to pass class method as argument (Thanks Grimshaw)
<li>Types registered with asOBJ_ASHANDLE should now provide the opHndlAssign method to support handle assignments
<li>Types registered with asOBJ_ASHANDLE can also register the opAssign method to support value assignments
<li>CreateScriptObjectCopy now uses the copy constructor for value types, if available
<li>The asBEHAVE_VALUE_CAST behaviour now supports the generic form 'void f(?&amp;out)'
<li>Improved runtime performance by avoiding increasing/decreasing refcount of script object in class methods (Thanks GGLucas)
</ul>
<li>Library interface
<ul>
<li>asIScriptFunction::GetDeclaration has an optional argument to include the parameter names (Thanks GGLucas)
<li>Added asIScriptFunction::GetParam that can optionally return both the name and default argument in addition to the type id
<li>Deprecated asIScriptFunction::GetParamTypeId
<li>Added GetObjectTypeByDecl to both engine and module
<li>Removed old deprecated methods
<li>Modules, contexts, and functions now also support multiple user data
<li>Added the global functions asAllocMem and asFreeMem that call the registered custom memory functions
<li>Added RequestContext, ReturnContext, SetContextCallbacks to engine
<li>Added the argument numIterations to GarbageCollect to support multiple iterations without having to call the method multiple times
<li>GetStringFactoryReturnTypeId now has an optional argument to return information on the reference (Thanks agentprog)
<li>Added support for registering functor objects as class methods with asCALL_THISCALL_OBJLAST and asCALL_THISCALL_OBJFIRST (Thanks Jordi Oliveras)
</ul>
<li>Script language
<ul>
<li>Named arguments in function calls are now supported (Thanks GGLucas)
<li>auto can now be used to tell the compiler to resolve the type of a variable from the initialization expression (Thanks GGLucas)
</ul>
<li>Add-ons
<ul>
<li>The GetTypeTraits&lt;T&gt;() helper function automatically detects when to use asOBJ_APP_ARRAY
<li>Added default factory and resize method to the grid
<li>Array and grid properly handle exceptions while constructing elements (Thanks Poly<6C>k Istv<74>n)
<li>Fixed compilation error with xcode 5.1 in dictionary (Thanks Jordi Oliveras Rovira)
<li>The array and grid addons use the asAllocMem and asFreeMem as default memory routines
<li>CScriptHandle implements the opHndlAssign instead of the opAssign
<li>Dictionary now has the opIndex that can be used to directly assign and retrieve values without using the set/get methods
<li>Dictionary uses asAllocMem and asFreeMem, and has factory functions to create instances
<li>The context manager now uses funcdefs and dictionary to create co-routines
<li>WriteConfigToFile wasn't saving the return type for the string factory correctly (Thanks agentprog)
<li>Added helper functions WriteConfigToStream and ConfigEngineFromStream
<li>Fixed compilation error with CScriptArray in asrun
</ul>
</ul>
<h2>Version 2.28.2 - 2014/03/18</h2>
<ul>
<li>Bug fixes
<ul>
<li>The Library can now be compiled for WinXP with multithread support again (Thanks carnalis)
<li>Fixed crash after loading bytecode with initialization lists holding ref types by value (Thanks loboWu)
<li>Fixed bug with saved bytecode and initialization lists that skip values
<li>Tokenizer was splitting identifiers that started with keywords that ended with numbers, e.g. int8 (Thanks loboWu)
<li>GetObjectTypeById crashed if the typeId represented a template instance type that had already been released (Thanks iraxef)
<li>Corrected some compiler warnings (Thanks arpeggiodragon)
<li>Fixed crash when returning primitive value implicitly cast from global handle (Thanks Jason Goepel)
<li>Fixed assert failure in compiler when using opAssign that returns a value instead of a reference (Thanks simong)
<li>Fixed memory leak with registered cast behaviours on template types (Thanks Jason Goepel)
<li>Fixed bug with missing implicit ref cast when passing object to parameter as inout reference (Thanks Jason Goepel)
<li>Fixed bug when passing 'null' or 'void' to var type argument
</ul>
<li>Library
<ul>
<li>It's now possible to use repeat_same in list pattern to tell compiler that all lines must be of the same length
<li>The compiler will warn if JIT compiler is used and script is built without JIT entry points (Thanks gjl)
<li>Compiler no longer warns on sign change for bitwise operator with negative enum value (Thanks _Vicious_)
<li>Reduced size of saved bytecode
<li>Changed GarbageCollect so that it can now be executed for a full cycle in a parallel thread
<li>Implemented C++11 move operators for the internal asCString type (Thanks iraxef)
<li>Compiler now casts to common base class when comparing two handles (Thanks Aaron Baker)
<li>When unsafe references is turned on the compiler allows passing literal constants to const references (Thanks Jason Goepel)
<li>Improved implicit cast of object to primitive in math expressions (Thanks Jason Goepel)
<li>Optimization to use the copy constructor instead of the assignment when preparing temp object for func argument
<li>Optimization to avoid copy when passing ref type to const &in parameter (Thanks Jason Goepel)
</ul>
<li>Script language
<ul>
<li>Anonymous objects can now be initialized in expressions with lists
<li>The opIndex operator overload now supports multiple arguments
<li>Functor objects can now be implemented by implementing opCall methods in the class (Thanks gjl)
</ul>
<li>Add-ons
<ul>
<li>Implemented closeTo() in the math add-on (Thanks haegarr)
<li>GetTypeTraits<T>() no longer incorrectly identifies C++ arrays as asOBJ_APP_CLASS (Thanks eezstreet)
<li>The script array now supports user defined memory routines (Thanks FDsagizi)
<li>The script array should be allocated with factory functions instead of directly with new (Thanks iraxef)
<li>Added GetTypeId to the dictionary to retrieve the type id of the stored value (Thanks iraxef)
<li>The dictionary now has an iterator on the C++ side that supports C++ range-for loops (Thanks iraxef)
<li>Implemented the grid template add-on
</ul>
</ul>
<h2>Version 2.28.1 - 2014/01/31</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed improper warning of used types when releasing engine and having circular references between registered types (Thanks Jason Goepel)
<li>Fixed memory leak on registering opAssign twice for the same object type (Thanks Jason Goepel)
<li>Compiler will not used enum values from registered enum types if the module doesn't have access to it
<li>Fixed assert failure in Execute when forgetting to set the object on a class method call (Thanks simps)
<li>Compiler now uses the default args declared in derived methods instead of the default args in base method (Thanks Aaron Baker)
<li>Fixed the position reported for errors while compiling global variables
<li>Compiler wasn't searching parent namespaces when resolving the symbol for class inheritance (Thanks Agnis)
<li>Fixed linker error on Windows RT with ARM due to misaligned code in as_callfunc_arm_msvc.asm (Thanks NiteLordz)
<li>Fixed crash with THISCALL_ASGLOBAL and virtual methods (Thanks Macobyte)
<li>Implicit cast didn't work in initialization of global vars (Thanks Jason Goepel)
<li>Incorrect bytecode sequence when compiling initialization list for dictionary containing values from global string variables (Thanks Jordi Oliveras Rovira)
<li>Compiler was incorrectly converting both results to const in ?: if one of the expressions was null (Thanks FDsagizi)
<li>Fixed memory leak on iOS when passing complex object by value to registered function (Thanks FDsagizi)
<li>Fixed intermittent crash with registered object properties of template instance types (Thanks aliascc)
<li>Fixed crash when attempting to assign a script object to another of another type (Thanks Philip Bennefall)
<li>Fixed crash when registering two or more methods for an object type uses template instance types in parameters or return value (Thanks iraxef)
</ul>
<li>Library
<ul>
<li>Defined default arg for asSFuncPtr constructor to allow trivial instanciation (Thanks _Vicious_)
<li>Added verification to avoid use of context from a different engine to call functions (Thanks GGLucas)
<li>Removed some more unused code in AS_NO_COMPILER mode
<li>Optimized compiler performance with faster lookups (Thanks GGLucas)
<li>Added check against attempts to register multiple list factories (Thanks Jason Goepel)
<li>Compiler is able to resolve ambiguous enum values if it can determine the enum type from the destination (Thanks Jason Goepel)
<li>Slightly reduced memory consumption as virtual functions no longer store the default args
<li>Linux with ARM now supports native calling conventions for both soft-float ABI and hard-float ABI
<li>Compiler is capable of using constructors with default args as default constructor (Thanks Sir Ementaler)
<li>An error will now be returned when building an empty script
<li>Saving bytecode for an empty module will now return an error
<li>The overhead for calling interface methods is reduced by adding the methods in the virtual function table (Thanks GGLucas)
<li>asIScriptEngine::GetObjectTypeByName can now return template types too
<li>POD value types are now allocated inline when members of script classes (Thanks GGLucas)
<li>Ternary condition operator now converts either case to const @ if the other is const @ (Thanks _Vicious_)
<li>Multithreading is now supported on Windows Store Apps too
<li>Slightly reduced size of saved bytecode
<li>Improved error messages when loading invalid bytecode
</ul>
<li>Script language
<ul>
<li>Added the operators ** and **= for exponent math operations (Thanks Jason Goepel)
<li>The methods opPow and opPow_r can be used to overload the exponent math operator (Thanks Jason Goepel)
</ul>
<li>Virtual machine
<ul>
<li>Added the instructions POWi, POWu, POWf, POWd, POWdi, POWi64, POWu64 (Thanks Jason Goepel)
</ul>
<li>Add-ons & samples
<ul>
<li>WriteConfigToFile now writes the engine properties too
<li>asbuild sample updated to set the engine properties as informed in config file
<li>Added GetTypeId to the script handle to make it easier to work with function pointers (Thanks Ava Skoog)
<li>Implemented FindByRef in the script array (Thanks Marcus L)
<li>CDebugger now has a RegisterToStringCallback to allow custom conversion of types to strings for the debug output
<li>Fixed assert failure in CScriptWeakRef (Thanks Squared'D)
<li>WriteConfigToFile escapes quote characters in default arg expressions (Thanks alraz.exe)
<li>asbuild sample updated to treat the escaped quote characters properly (Thanks alraz.exe)
<li>CScriptHandle will hold a reference to engine to avoid crash if engine is released before the contained reference (Thanks Samuel Villarreal)
</ul>
</ul>
<h2>Version 2.28.0 - 2013/11/02</h2>
<ul>
<li>Bug fixes
<ul>
<li>The GET_WEAKREF_FLAG behaviour is now registered for the script types in AS_MAX_PORTABILITY too (Thanks orimoto)
<li>Fixed stack alignment problem with native calling convention for Linux and ARM (Thanks loboWu)
<li>Fixed null pointer access during compilation if JIT compiler is used (Thanks Andrew Ackermann)
<li>Fixed null pointer access when calling GetMethodByDecl on template instance type (Thanks Jason Goepel)
<li>Fixed memory leak with default args and shared functions (Thanks thd.MM)
<li>Fixed crash on registering function with autohandles for unknown type (Thanks Jason Goepel)
<li>Fixed crash on registering template specialization twice (Thanks Jason Goepel)
<li>Fixed bug with passing handle to ?& arg with unsafe references (Thanks FDsagizi)
<li>opEquals with funcdef works again (Thanks Violet CLM)
<li>Fixed bug with implicit casts of large integer constants and uint64 (Thanks Apmyp)
<li>Fixed bug in IsNested when called with parameter (Thanks Jordi Oliveras Rovira)
<li>Fixed crash in compiler when resolving function pointers with namespace (Thanks Violet CLM)
<li>Conditional operator ?: implicitly converts 0 to the type of the other expression again (Thanks FDsagizi)
<li>Reusing existing module without discarding it no longer accumulates memory in engine (Thanks Scott Bean)
<li>The object type for script classes that formed circular reference with base class wasn't resolved by gc (Thanks Scott Bean)
<li>FindNextLineWithCode() works properly for class constructors where class has non-primitive members too (Thanks Scott Bean)
<li>GetTypeDeclaration now work correctly for registered template specializations (Thanks zexee)
<li>Fixed crash with chained handle assignments (Thanks FDsagizi)
<li>Fixed compiler errors with Borland (Thanks Viacheslav Polyakov)
<li>Fixed assert failure in compiler on explicit ref cast of void expression (Thanks AgentC)
</ul>
<li>Library
<ul>
<li>The list factory behaviour now receives a pointer to a buffer with all values instead of just the expected length
<li>Engine now properly supports use of autohandles in template factories
<li>Assembler code for Linux + ARM is now unified to support both normal and thumb mode (Thanks loboWu)
<li>The engine uses the registered list pattern to dynamically determine the elements in the list buffer
<li>Optimized tokenizer with the use of jump tables (Thanks GGLucas)
<li>Added compiler warning on implicit conversion from float to integer (Thanks FDsagizi)
<li>FindNextLineWithCode() is able to find the first line with code from where the function has been declared
<li>Added code to detect and warn instead of crashing if application attempts to resurrect script object during its destruction (Thanks Tuukka Pensala)
<li>The function declaration for constructors and destructors now show the object type name instead of _beh_x_ (Thanks Jason Goepel)
<li>Added support for atomics and posix threads with Android 2.3+ (Thanks Jordi Oliveras Rovira)
<li>The engine no longer writes parser errors to message callback in the GetByDecl methods (Thanks kaveldun)
<li>Updated config to correctly identify iOS with 64bit arm (Thanks taliska)
</ul>
<li>Library interface
<ul>
<li>Added GetModuleCount and GetModuleByIndex for enumerating existing modules (Thanks Vitaly Akimov)
<li>asBEHAVE_LIST_FACTORY must declare the expected pattern for the initialization list
<li>Added asBEHAVE_LIST_CONSTRUCT to allow value types to be initialized with lists too
<li>GetVarDecl and GetPropertyDeclaration now take an optional includeNamespace argument (Thanks zexee)
</ul>
<li>Virtual machine
<ul>
<li>Implemented the bytecodes asBC_AllocMem, asBC_SetListSize, asBC_SetListType and asBC_PshListElmnt for handling initialization lists
<li>asBC_FREE has been enhanced to allow it to destroy the content of an initialization list
</ul>
<li>Add-ons
<ul>
<li>The script array add-on uses the new form for the initialization list
<li>The weakref add-on now works properly in AS_MAX_PORTABILITY too
<li>Fixed bug in script array resize() method that could cause a crash if reserving too much memory (Thanks Philip Bennefall)
<li>Fixed compiler error in CDebugger add-on when using the AngelScript namespace (Thanks Jordi Oliveras Rovira)
<li>The dictionary add-on now supports initialization lists
<li>The Complex math add-on now supports initialization lists
</ul>
</ul>
<h2>Version 2.27.1 - 2013/08/16</h2>
<ul>
<li>Bug fixes
<ul>
<li>Engine no longer accepts registering template factory with autohandles
<li>Implicit conversion to ASHANDLE type will not copy the value any longer
<li>Fixed 64bit bug in asBC_SwapPtr (Thanks Colin Didier)
<li>Fixed bug in the compiler when dealing with opAssign that returns anything else than a reference (Thanks neorej16)
<li>Compiler was incorrectly reusing temporary variables in some expressions with ternary condition operator (Thanks neorej16)
<li>Compiler was incorrectly making a copy of the object in some cases for explicit ref casts
</ul>
<li>Library
<ul>
<li>Reduced memory footprint for applications with a lot of registered functions
</ul>
<li>Script language
<ul>
<li>For consistency @null is now a valid expression
<li>Default arguments can be used with anonymous parameters (Thanks Sir Ementaler)
<li>void is a legal expression and can be used to ignore output parameters
</ul>
<li>Add-ons & samples
<ul>
<li>Fixed bug in CScriptBuilder with loading an empty file (Thanks Piotr Kosek)
<li>Implemented a different ExecuteString that can return a value of variable type
</ul>
</ul>
<h2>Version 2.27.0 - 2013/07/28</h2>
<ul>
<li>Bug fixes
<ul>
<li>Compiler would call a script class' opAssign method as if it was a system function in a specific situation causing a crash (Thanks Poly<6C>k Istv<74>n)
<li>A compound assignment to a class member could be compiled incorrectly if the lvalue had deferred parameters in expression (Thanks Poly<6C>k Istv<74>n)
<li>GetExceptionLineNumber would crash if the exception had been raised in a generated function (Thanks Poly<6C>k Istv<74>n)
<li>Fixed compiler error on FreeBSD (Thanks Veniamin Gvozdikov)
<li>Compiler didn't detect ambigious enum values when compiling initialization of global variables
<li>Nested calls in context could overwrite value in register (Thanks Philip Bennefall)
<li>Fixed bug with max portability and delegates (Thanks Andris Jaunzeikars)
<li>Fixed memory leak in compiler with shared classes and virtual properties (Thanks Xifos)
<li>Function pointers for global functions in namespaces wasn't resolving properly (Thanks Violet CLM)
<li>Registered value types that didn't have size evenly divisable of 4 weren't allocated with enough space (Thanks Hermann Noll)
<li>Class methods with default args using parenthesis failed to parse (Thanks Aaron Baker)
<li>Template arguments declared as const T@ will keep the handle-to-const attribute in template instances
</ul>
<li>Library interface
<ul>
<li>Removed previously deprecated methods
<li>Added GetModule method to the asIScriptFunction and asIObjectType interfaces
<li>Added Discard to the asIScriptModule interface, that does the same as asIScriptEngine::DiscardModule
<li>Added GetDelegateObject and GetDelegateFunction to asIScriptFunction
<li>Added CreateDelegate to asIScriptEngine
<li>RegisterObjectBehaviour and RegisterStringFactory now accepts asCALL_THISCALL_ASGLOBAL
<li>Added type modifier asTM_CONST to indicate parameters and return types that are const references (Thanks Poly<6C>k Istv<74>n)
<li>GetArgTypeId and GetReturnTypeId now have optional parameter to retrieve the type modifier flags
<li>Added GetFuncDefFromTypeId to allow getting the asIScriptFunction for a function definition (Thanks Poly<6C>k Istv<74>n)
<li>NotifyGarbageCollectorOfNewObject will return the sequence number attributed to the object
<li>Added GetObjectInGC to allow inspecting objects that are currently known by the GC
<li>The new behaviour asBEHAVE_GET_WEAKREF_FLAG was added to support weak references (Thanks vroad)
<li>Added the interface asILockableSharedBool for the weak ref flag
<li>Global asCreateLockableSharedBool can be used by application classes to create instances of shared booleans
<li>CreateScriptObject, CreateScriptObjectCopy and CreateUnitializedScriptObject now takes an asIObjectType instead of type id
<li>AssignScriptObject also takes an asIObjectType instead of type id
<li>Deprecated AddRefScriptObject and ReleaseScriptObject that takes type id
</ul>
<li>Library
<ul>
<li>Improved performance of thread manager and with that reduced the overhead of script calls (Thanks Andrew Ackermann)
<li>GC now gives an id for each object from a sequence and reports this when it cannot destroy an object
<li>GC will call script class destructor before breaking circular references (Thanks hupsilardee)
<li>Engine no longer silently accepts modifications to built-in types by the application (Thanks Violet CLM)
<li>Added support for weak references (Thanks vroad)
</ul>
<li>Script language
<ul>
<li>Literal float and double constants accept the format 1e5 (Thanks Jason Goepel)
<li>Template subtypes can no longer be declared as read-only
<li>Derived classes can no longer override base methods with different return types (Thanks Philip Bennefall)
</ul>
<li>Add-ons & samples
<ul>
<li>Script array add-on can now sort arrays of handles by calling the opCmp on the objects (Thanks Poly<6C>k Istv<74>n)
<li>Script array does a better search for matching opCmp and opEquals (Thanks Poly<6C>k Istv<74>n)
<li>Fixed compilation error with has_trivial_destructor on g++ 4.8 in GetTypeTraits (Thanks Craig Soutar)
<li>Added the weakref add-on (Thanks vroad)
<li>The game sample uses the weakref add-on
</ul>
</ul>
<h2>Version 2.26.3 - 2013/05/08</h2>
<ul>
<li>Bug fixes
<ul>
<li>Compiler was generating invalid bytecode when compiling var declaration with initialization using void opAssign (Thanks Andrew Ackermann)
<li>RegisterObjectProperty() will now return an error if the offset is larger than a signed 16bit value which is what the VM supports (Thanks Adrian Bibby Walther)
<li>Fixed bug in compiler where the class constructor could become invalid if two classes with the same name was declared in different namespaces (Thanks loverlin)
<li>A null pointer access error could happen when compiling a script with enums after discarding a script with global variables (Thanks Robert Weitzel)
<li>The context could in some situations attempt to destroy objects on the stack that had never been initialized upon cleanup (Thanks Philip Bennefall)
<li>Multi-template types where both subtypes are of the same script class no longer crash the GC (Thanks Poly<6C>k Istv<74>n)
</ul>
<li>Library interface
<ul>
<li>The new enum asFUNC_DELEGATE is used to identify function objects that are delegates
<li>The engine property asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE disables value assignments for reference types
</ul>
<li>Script language
<ul>
<li>Delegates can now be instantiated with a construct call for a funcdef with the class method as argument
<li>Function handles for overloaded functions are now implicitly resolved by the compiler by deferring the choice of the function until its used
<li>Parent namespaces are now searched recursively for matching entities
</ul>
<li>Add-ons
<ul>
<li>Script array add-on will not allow subtypes of reference types unless they are handles if asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE is turned on (Thanks Poly<6C>k Istv<74>n)
<li>Added methods GetSectionCount() and GetSectionName() to builder for enumerating the included script sections
<li>Added fpToIEEE and fpFromIEEE to the math addon. These allow platform agnostic conversion between floating point and IEEE 754 representation (Thanks Maarten van Berkel)
</ul>
</ul>
<h2>Version 2.26.2 - 2013/03/31</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug in compiler when compiling implicit cast of global variable of ref type to a primitive value (Thanks jrick)
<li>Fixed crash that could happen on releasing the engine if some garbage collected object was still kept alive by application (Thanks thd.MM)
<li>Fixed the native calling conventions on Android (Thanks Grimshaw)
<li>Fixed problem with shared global functions being recompiled in all modules and thus causing memory leaks (Thanks thd.MM)
<li>Fixed crash with native calling conventions on Linux 64bit (Thanks darthvolvo)
<li>The compiler wasn't giving error when default arg expression didn't match the parameter type (Thanks Philip Bennefall)
<li>Evaluating -2147483648 / -1 is now treated properly with a script exception (Thanks TyRoXx)
<li>Initializing class member in declaration with a non-default constructor produced invalid bytecode (Thanks fanwars)
<li>Fixed the native calling conventions on MinGW64 4.7 (Thanks Neuntoter)
</ul>
<li>Library
<ul>
<li>Improved garbage collector to give better error messages when it can't release all objects
<li>Added engine property asEP_COMPILER_WARNINGS to allow applications to turn off warnings
<li>Changed the code back to emit a warning instead of an error on unreachable code as it was often used by developers to temporarily skip parts of the code during testing
<li>Increased maximum limit of number of functions in the engine from 65535 to approximately 10^9 (Thanks TheAtom)
</ul>
<li>Script language
<ul>
<li>Integer constants are now considered signed by default (Thanks cellulose)
</ul>
<li>Add-ons
<ul>
<li>Implemented helper function GetTypeTraits&lt;T&gt; to aid in the registration of value types. Relies on C++11 features (Thanks Heuristics)
</ul>
<li>Project
<ul>
<li>Updated the Android makefile to make sure the library is compiled with thumb mode turned off (Thanks quarnster)
<li>Modified the gnuc makefile to make it easier for Linux package maintainers (Thanks Michael Shigorin)
<li>Updated trolltech makefile to allow it to compile as_callfunc_x64_msvc_asm.asm on 64bit Windows (Thanks Markus M<>nig)
</ul>
</ul>
<h2>Version 2.26.1 - 2013/03/02</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compiler error on Mac OS X in with the atomic functions (Thanks thd.MM)
<li>Fixed segfault in GetGlobalVarIndexByDecl on passing invalid declaration (Thanks Nate Kent)
<li>AssignScriptObject and CopyFrom wasn't using the script class' opAssign method (Thanks Poly<6C>k Istv<74>n)
<li>Fixed bug in compiler with complex expressions in default args (Thanks Philip Bennefall)
<li>Fixed the line numbers for for-loops (Thanks FDsagizi)
<li>Fixed bug with the allocation of function ids, which could cause random behaviour for very large scripts (Thanks TheAtom)
<li>Fixed bug with loading bytecode that used registered value types that could cause unexpected behaviour (Thanks TheAtom)
<li>The compiler wasn't considering the correct namespace when parsing methods of classes and interfaces within namespaces (Thanks Wipe)
<li>Interfaces that inherited other interfaces didn't expose the inherited methods (Thanks Wipe)
<li>Fixed assert failure in compiler with use of copy constructor for value type with unsafe reference (Thanks FDsagizi)
<li>Fixed assert failure in compiler with nested access to virtual property accessors (Thanks AgentC)
<li>Fixed null pointer access in compiler when compiling default constructor for a class with invalid member initialization expressions (Thanks FDsagizi)
<li>Fixed crash in compiler when compiling call to imported function with default arguments (Thanks Wipe)
<li>Compiler no longer emits warnings on implementing the same interface multiple times (Thanks Wipe)
<li>Compiler generated invalid bytecode when compiling expression that called function pointer returned from virtual property accessor (Thanks Wipe)
<li>Fixed crash in GetLineNumber after loading module from bytecode (Thanks FDsagizi)
<li>Fixed memory leak that could happen upon script exception (Thanks Wipe)
</ul>
<li>Library
<ul>
<li>Improved error message from CreateScriptObject when called for type that doesn't have default constructor (Thanks izackp)
<li>Parser doesn't complain with empty declaration, i.e. a single ;, in classes (Thanks FDsagizi)
<li>Improved error message when encountering non-terminated string literals (Thanks FDsagizi)
<li>Templates now support multiple subtypes (Thanks Amer Koleci)
<li>Added support for native calling conventions on Linux with ARM and gnuc compiler (Thanks Carlos Luna)
<li>Compiler will report error if virtual property in shared interface doesn't match first declaration of the interface (Thanks Wipe)
<li>Funcdefs are now automatically shared between modules if they are identical (Thanks Wipe)
</ul>
<li>Script language
<ul>
<li>Primitives can now be implicitly cast to value types via a call to the appropriate constructor
<li>Added support for octal and binary constants with prefixes 0o and 0b respectively (Thanks ketmar)
<li>Heredoc strings keep the last linebreak (Thanks Scott Bean)
</ul>
<li>Add-ons
<ul>
<li>Script any, dictionary, and file add-ons now uses asAtomicInc/Dec to provide threadsafe reference counting
<li>Implicit casts from primitives to the complex math type can be done with the new constructor
</ul>
</ul>
<h2>Version 2.26.0 - 2013/02/03</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed rare crash after an object type had been deleted prematurely by the engine
<li>Fixed incorrect static_cast on MSVC when attempting to register method for class with virtual inheritance (Thanks David Rosen)
<li>Fixed compiler warnings when compiling with AS_NO_THREADS (Thanks Papirosnik)
<li>Namespaces are now properly considered when compiler searches for property accessors (Thanks Violet CLM)
<li>Fixed crash that occurred when using asCALL_GENERIC with asBEHAVE_TEMPLATE_CALLBACK (Thanks Andre Santee)
<li>Fixed problem with saving/loading bytecode that passed function pointers in a function parameter (Thanks Andre Santee)
<li>Fixed global variables of scoped reference types
<li>Fixed bug in XBox 360 native calling convention code when returning simple objects by value (Thanks Jason Dorie)
<li>Fixed compiler errors on Wii U (Thanks virious)
<li>Shared types would get the implemented interfaces duplicated if compiled in multiple modules (Thanks Andrew Ackermann)
<li>Fixed bug in compiler with passing temp handle to function taking inout ref to object (Thanks kozec)
<li>RegisterObjectType no longer accepts combination of asOBJ_VALUE and asOBJ_NOHANDLE (Thanks Paril101)
<li>Compiler wasn't considering the correct implicit namespace when looking up datatypes (Thanks Paril101)
<li>Loading bytecode always failed if global variables had been disabled, even if the saved bytecode didn't have any global variables (Thanks Paril101)
<li>Constructor with const &amp;inout is now recognized as copy constructor with asEP_ALLOW_UNSAFE_REFERENCES (Thanks FDsagizi)
<li>Fixed parser error when function declaration had default argument that used paranthesis (Thanks Thomas Grip)
<li>Fixed null pointer access in GetLineNumber() if called on function without debug info (Thanks ketmar)
<li>Fixed crash that could happen discarding a module and the garbage collector held a reference to an object declared in the module (Thanks Thomas Grip)
<li>Script arrays could be falsely marked as non-garbage collected as the asOBJ_GC flag wasn't set when the template callback was invoked
<li>Fixed bug where a script class could be incorrectly marked as non-garbage collected when including a garbage collected member by value
</ul>
<li>Library interface
<ul>
<li>Added asCALL_THISCALL_ASGLOBAL for registering a class method as a global function
<li>RegisterGlobalFunction() now takes an optional object pointer to be used with THISCALL_ASGLOBAL (Thanks zerochen)
<li>asPrepareMultithread now takes an optional argument for using a shared thread manager in multiple dlls (Thanks Damien French)
<li>asGetThreadManager and asIThreadManager for retrieving an existing thread manager (Thanks Damien French)
<li>Added GetDefaultNamespace to engine and module (Thanks dkrusu)
<li>Prepared asIObjectType for future implementation of templates with multiple subtypes
<li>Added asAtomicInc and asAtomicDec as global functions to aid in development of portable and threadsafe add-ons
</ul>
<li>Library
<ul>
<li>Unreachable code in script functions is now considered an error by the compiler, instead of just a warning
<li>Compiler avoids misleading error message about not all paths having a return value after encountering unreachable code (Thanks zerochen)
<li>Marmalade is now identified as an OS with its own ABI (Thanks Braden MacDonald)
<li>Added configuration for compiling the library with gnuc on Linux with mips. Though only with AS_MAX_PORTABILITY (Thanks Andris Jaunzeikars)
<li>Added compile time option AS_NO_MEMBER_INIT to disable member initialization for backwards compatibility (Thanks Andrew Ackermann)
<li>Reduced size of executable by avoiding code inlining in templated functions for taking function pointers (Thanks AgentC)
<li>Slight reduction on overhead of calling system functions (Thanks Andrew Ackermann)
<li>Improved algorithm in compiler for determining if objects needs to be garbage collected or not by taking advantage of the 'final' flag (Thanks Andrew Ackermann)
</ul>
<li>Script language
<ul>
<li>It is now possible to initialize class members directly in the declaration
</ul>
<li>Add-ons
<ul>
<li>Implemented the generic calling convention wrappers for the missing methods in the script array add-on
<li>Implemented the generic calling convention wrappers for the script handle add-on
<li>Implemented the generic calling convention wrappers for the missing methods in the std::string add-on
<li>Fixed bug in script array when comparing two arrays for equality and only opCmp had been implemented in the element type (Thanks virious)
<li>Fixed fopen_s compiler error on Marmalade in the scriptfile and scripthelper add-ons (Thanks Braden MacDonald)
<li>CScriptBuilder::AddSectionFromMemory() now requires a name and an optional length for the buffer in case it is not null terminated (Thanks Paril101)
<li>Fixed null pointer access in CDebugger when stepping over a function without debug info (Thanks ketmar)
<li>Script array's reference counter is now threadsafe by using the global functions asAtomicInc and asAtomicDec
</ul>
</ul>
<h2>Version 2.25.2 - 2012/11/24</h2>
<ul>
<li>Bug fixes
<ul>
<li>Problem with template types when non-default factory was registered before the default factory (Thanks zeta945)
<li>import functions can now be declared with default arguments without crashing (Thanks Wipe)
<li>Fixed bug in IsNested() that could sometimes give false positives
<li>Fixed incorrect error messages for mismatching property accessors when this had been disabled by application (Thanks Philip Bennefall)
</ul>
<li>Library
<ul>
<li>Changed to localized bytecode optimizations for greatly enhanced compilation speeds in large complex functions
<li>Added new bytecode optimizations for improved runtime performance
<li>Script functions are now only added to the GC when the owning module releases them
<li>Some more unused methods in the code are excluded when compiling with AS_NO_COMPILER
<li>Global properties are also only added to the GC when the owning module releases them
<li>Object types are no longer added to the GC while the module still references them
<li>Changed style of comments in as_callfunc_arm_gcc.S to avoid compiler errors with Marmalade (Thanks Papirosnik)
</ul>
<li>Script language
<ul>
<li>Mixin classes can now implement interfaces
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Fixed some compiler errors with gnuc in the sample projects (Thanks Aapo Rantalainen)
<li>ScriptBuilder now supports metadata for entities in namespaces (Thanks Chase W)
<li>Changed the code in the string factory to avoid confusing the Marmalade memory leak detector (Thanks Papirosnik)
</ul>
</ul>
<h2>Version 2.25.1 - 2012/10/28</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed including mixin from a different script section (Thanks Nick Robinson)
<li>Registering template specializations for templates without default constructor is now working (Thanks slicer4ever)
<li>Fixed compiler assert on unary negate operator on void expression (Thanks FDsagizi)
<li>Fixed bug with NOCOUNT object when copying script class members (Thanks FDsagizi)
<li>Problem with exception handling after loading pre-compiled bytecode when class constructor takes object in argument (Thanks FDsagizi)
<li>GetLineNumber() could crash when called for nested context calls (Thanks saejox)
<li>Compiler would incorrectly find global functions when compiling function calls as post ops (Thanks FDsagizi)
<li>Fixed bug in compiler when compiling property get expression that returned a reference to an object, but the reference wasn't used (Thanks Eero Tanskanen)
<li>Fixed bug with virtual methods returning objects in memory on ARM platforms (Thanks Cordan)
<li>Fixed compiler bug when compiling function that takes out reference of a type where opAssign returned a value (Thanks _Engine_)
<li>Compiler wasn't showing error for virtual properties without any accessor (Thanks FDsagizi)
<li>Shared enums in pre-compiled bytecode were not treated as shared when loading (Thanks _Engine_)
<li>Shared classes will now validate that declared members exist in the original declaration during compilation (Thanks _Engine_)
</ul>
<li>Library
<ul>
<li>Implemented an inline profiler to get better understanding of bottlenecks in the code
<li>Added support for the new ABI in MinGW32 4.7 (Thanks Heuristics)
<li>Improved error messages when loading bytecode with shared types that doesn't match existing shared types
<li>The context's line callback is now invoked one extra time just before leaving the Execute() method to allow listeners to catch state changes (Thanks saejox)
<li>Made some improvements towards compatibility with Marmalade
<li>Added validation against duplicate registration of global functions or class methods (Thanks Jason Dorie)
</ul>
<li>Script language
<ul>
<li>Class properties of the same type can now be declared together separated by ,
<li>Interfaces can now inherit from other interfaces
<li>Improved the way function overloads are matched against arguments so least conversion cost for all arguments wins (Thanks Adam Hoult)
</ul>
<li>Add-ons
<ul>
<li>Slight optimization in the string pool when a string is inserted for the first time (Thanks thewavelength)
<li>Fixed bug in script builder add-on with parsing metadata for invalid script (Thanks FDsagizi)
</ul>
</ul>
<h2>Version 2.25.0 - 2012/09/17</h2>
<ul>
<li>Bug fixes
<ul>
<li>GetEnumByIndex and GetTypedefByIndex wasn't returning a valid typeId when the type was not in the default namespace (Thanks Poly<6C>k Istv<74>n)
<li>Inheriting from a class or interface in a different namespace didn't work (Thanks Poly<6C>k Istv<74>n)
<li>Functions and class methods didn't accept the scope operator in the return type (Thanks Poly<6C>k Istv<74>n)
<li>Compiler missed adding a validation for a null pointer when compiling a return statement for a function returning object by value (Thanks Philip Bennefall)
<li>Fixed crash when cleaning up after a script exception in a function that returns a value object by value (Thanks Philip Bennefall)
<li>Fixed memory leak when compiling script that declares interface with virtual properties (Thanks brumi)
<li>Functions that take 64bit types as arguments now work with Android native calling conventions (Thanks Fredrik Ehnbom)
<li>Fixed bug in compiler when assigning value from property accessor to array element (Thanks Philip Bennefall)
<li>Fixed crash in garbage collector when using automatic collections (Thanks Poly<6C>k Istv<74>n)
<li>Compiler failed to compile default argument expression that accessed an index in global array (Thanks Philip Bennefall)
<li>Avoid temporary copy of script object without explicit opAssign method when assigned from global variable (Thanks Andrew Ackermann)
<li>Duplicate class methods are now detected at their declaration (Thanks FDsagizi)
<li>Local function pointers variables now properly take precedence over class methods of the same name (Thanks cellulose)
<li>Serializing bytecode that called funcions with variable arguments didn't work properly (Thanks Markus Lenger)
<li>Construct calls in expressions are now parsed properly when the type is preceeded with the namespace (Thanks Andrew Ackermann)
<li>Compiler gave error when compiling non-const methods that returned const references to members (Thanks Poly<6C>k Istv<74>n)
</ul>
<li>Library
<ul>
<li>The VM will catch C++ exceptions thrown by the registered functions and set a script exception. This can be turned off by AS_NO_EXCEPTIONS if exception handling is not supported (Thanks Poly<6C>k Istv<74>n)
<li>Loading large precompiled bytecode files will now be significantly faster. Performance should now be similar to pre 2.23.0 (Thanks loboWu)
<li>Improved build performance of tokenizer for large initialization lists (Thanks Markus Lenger)
<li>Improved build performance of parser for scripts with a lot of statements
<li>Improved build performance of searching for global properties by name (Thanks Markus Lenger)
<li>Improved build performance of searching for global script functions (Thanks Markus Lenger)
<li>Compiler will now implicitly convert rvalue to handle when doing a handle assignment to ASHANDLE type
<li>Types registered with asOBJ_APP_PRIMITIVE or asOBJ_APP_FLOAT can now be passed by value in native calling convention on 64bit Linux and Mac (Thanks Cordan)
<li>Error message now includes the error code when an improper call to an engine function is made
<li>Improved error message when parser encounters unexpected end of file (Thanks Philip Bennefall)
<li>Improved build performance when optimizing bytecode with a large amount of conditions
</ul>
<li>Virtual Machine
<ul>
<li>float and double comparisons in the VM now properly handle infinity (Thanks GGLucas)
</ul>
<li>Library interface
<ul>
<li>Added asOBJ_APP_CLASS_ALIGN8 used to inform AngelScript that a type may need to be aligned on 8byte boundaries (Thanks Fredrik Ehnbom)
<li>The template callback behaviour now take a second argument to allow the application to tell the engine if an instance shouldn't be garbage collected
<li>Added asOBJ_SCRIPT_FUNCTION flag to identify the object type that represents script functions
<li>Added asIScriptFunction::IsCompatibleWithTypeId() and GetTypeId() to work with function pointers as generic types
<li>Added an optional argument to asIScriptModule::SaveByteCode to strip the debug info
<li>Added an optional argument to asIScriptModule::LoadByteCode to determine if the bytecode contains debug info or not
</ul>
<li>Script language
<ul>
<li>Added keyword 'mixin'
<li>mixin classes can now be declared with default implementations to be included into a class
</ul>
<li>Add-ons
<ul>
<li>The script array is no longer garbage collected if the type cannot form circular references (Thanks Philip Bennefall)
<li>Implemented the C++ copy constructor for the CScriptArray
<li>Added GetType() to CScriptHandle
<li>CScriptHandle::Cast() properly handles function pointers
<li>Fixed bug in CScriptArray::SetValue() when replacing a handle in an element (Thanks Andrew Ackermann)
<li>Added wrapper for std::string::operator== to fix compile error on gcc 4.7 (Thanks Piotr Rak)
<li>Fixed bug in CSerializer related to extra objects (Thanks FDsagizi)
</ul>
</ul>
<h2>Version 2.24.1 - 2012/08/07</h2>
<ul>
<li>Bug fixes
<ul>
<li>Parser now recognizes declarations where the type is declared in a different namespace (Thanks alraz)
<li>Parser can now parse templates where the subtype is in a different namespace (Thanks sylexer)
<li>Stack pointer wasn't restored correctly when reusing context, which lead to memory invasions (Thanks virious)
<li>Fixed problem with loading bytecode that contained arrays of function pointers (Thanks TheAtom)
<li>GetFunctionByDecl() failed to find functions with parameters when they were declared in a namespace (Thanks alraz)
<li>The scope operator can now be used in the inheritance list when a class is deriving from a class in another namespace (Thanks alraz)
<li>IsVarInScope() and GetAddressOfVar() now works properly even before Execute() (Thanks Friggle)
<li>The garbage collector could enter an infinite recursive loop if invoked while calling a class destructor (Thanks Philip Bennefall)
<li>Aborting a nested script call could cause a crash in the VM (Thanks Philip Bennefall)
<li>AS_64BIT_PTR is now defined in angelscript.h instead of in as_config.h (Thanks quarnster)
<li>Saving bytecode with functions that take enums by value could fail on 64bit platforms (Thanks m4ttbush)
<li>asIScriptContext::GetLineNumber() will now return the line where the function call was made from (Thanks quarnster)
<li>Registering object properties when both object and property type is in a namespace is now working properly (Thanks Starfox)
<li>Fixed memory invasion when script allocated script class that had other script classes as members (Thanks Andrew Ackermann)
<li>Registering global properties with a type from another namespace failed (Thanks _Engine_)
<li>Fixed 64bit bug when saving bytecode (Thanks quarnster)
</ul>
<li>Library
<ul>
<li>Removed functionality where interfaces would be automatically shared if the declaration was identical. This was already deprecated in version 2.23.0
<li>Improved internal handling of namespaces
<li>Reduced the size of saved bytecode by not storing the namespace of class methods
<li>Bytecode optimizer exchanges some more sequences with shorter ones for better performance
<li>When the engine receives a request to abort a script in a nested call it will now forward the request to the outer call, after aborting the inner call (Thanks Philip Bennefall)
<li>Reduced recursiveness in compiler to allow it to compile extremely long expressions without stack overflow (Thanks Philip Bennefall)
<li>Added JitEntry instructions in the factory stub functions and generated default constructor
</ul>
<li>Script language
<ul>
<li>Function pointers can now be invoked from arbitrary expressions without first assigning them to a variable (Thanks TheAtom)
</ul>
<li>Virtual machine
<ul>
<li>Each call to Execute() will now tell the GC to process at least one step unless automatic garbage collection is turned off
</ul>
<li>Add-ons
<ul>
<li>Corrected the implementation of Complex::operator/() to calculate the proper result (Thanks CMRM)
<li>Fixed compilation error in scriptbuilder.cpp on XCode 4.3 with CLang++ 3.1 (Thanks Ricky C)
<li>The script array will forward requests to abort a script to the outer call when performing comparisons, which uses nested calls (Thanks Philip Bennefall)
<li>Fixed linker error in scriptstdstring.cpp on XCode 4.3 with CLang++ 3.1 (Thanks Ricky C)
<li>Fixed crash in script array when the array was created with a very large initial size (Thanks Philip Bennefall)
</ul>
</ul>
<h2>Version 2.24.0 - 2012/06/24</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a potential crash if context is prepared but never executed (Thanks Andrew Ackermann)
<li>Fixed crash with release of the thread manager if the last engine was released as part of destructor in global variable (Thanks Friggle)
<li>Accessing entitites in global scope from a function in a namespace didn't work (Thanks _Vicious_)
<li>Fixed assert failure on compiling unary plus operator on non-primitive (Thanks FDsagizi)
<li>Fixed error in compiler with index operator on a value returned by a property index accessor (Thanks Andrew Ackermann)
<li>Fixed error in compiler when compiling function call with @&amp; parameter and asEP_ALLOW_UNSAFE_REFERENCES (Thanks FDsagizi)
<li>Fixed problem in parsing enum declarations where unexpected tokens might get ignored (Thanks virious)
<li>Fixed crash on 64bit Mac OS X when calling native function that receives and returns large objects by value (Thanks Markus M&ouml;nig)
<li>Namespaces are now properly considered for registered types as well (Thanks Ricky C and adam4813)
<li>Improved compatibility with native calling convention on Android with gnuc (Thanks Lasse &Ouml;&ouml;rni)
<li>SaveByteCode() was crashing when the script contained assignment of POD types without explicit opAssign method (Thanks Andrew Price)
<li>Fixed crash with releasing a suspended context when a function was returning a value type by value (Thanks Andrew Price)
<li>The engine allowed to register multiple ref cast behaviours to the same type, which would cause assert failure in compiler (Thanks Andrew Ackermann)
<li>Improved compatibility with native calling conventions on iOS (Thanks Lasse &Ouml;&ouml;rni)
<li>Templates with const subtypes are now properly handled (Thanks Andrew Ackermann)
<li>Fixed SegV with gnuc when using a virtual method for the message callback (Thanks Tzarls)
<li>Fixed problem with calling registered functions with more than 8 parameters on XBox 360 (Thanks virious)
<li>Fixed problem with returning float/double on XBox 360 when the library is compiled with optimizations (Thanks virious)
<li>Fixed bug with virtual property access with index and variable type argument (Thanks virious)
<li>IsHandleCompatibleWithObject() was ignoring inheritance for script objects (Thanks saejox)
<li>Fixed bug in compiler when compiling a cast on temporary ASHANDLE object (Thanks saejox)
</ul>
<li>Library interface
<ul>
<li>Added the global functions asPrepareMultithread() and asUnprepareMultithread()
<li>The engine and object type can now hold multiple different user data
<li>Added the global functions asAcquireExclusiveLock(), asReleaseExclusiveLock(), asAcquireSharedLock() and asReleaseSharedLock()
<li>Deprecated engine::GetGlobalFunctionIdByIndex()
<li>Deprecated module::GetFunctionIdBy...() and module::RemoveFunction(funcId)
<li>Changed asIScriptContext::GetAddressOfVar() to dereference parameter references to make it easier to use (Thanks virious)
<li>Changed BindImportedFunction to take a asIScriptFunction pointer
<li>Deprecated context::Prepare(int id)
<li>Deprecated generic::GetFunctionId() and GetFunctionUserData()
<li>Deprecated objecttype::GetFactoryId...() and GetMethodId...()
<li>Changed objecttype::GetBehaviourByIndex() to return asIScriptFunction*
<li>Added the method engine::CreateUninitializedScriptObject() that will create an object without calling the constructor
<li>Added module::GetObjectTypeByName()
<li>Renamed engine::CopyScriptObject() to AssignScriptObject() to avoid common confusion with the intent of the method
<li>Added PushState(), PopState(), and IsNested() to the context that can be used to reuse an active context in a system call
</ul>
<li>Library
<ul>
<li>Improved stability in out-of-memory conditions to allow graceful exits (Thanks Zylann)
<li>Improved error handling when loading incorrect bytecode (Thanks Andrew Price)
<li>Improved thread safety in XBox 360 native code
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>SetValue is now a public method in the CScriptArray (Thanks saejox)
<li>The array add-on takes advantage of the multiple user data types to share its cache between arrays of the same type
<li>The array uses the new global functions to create the shared cache in a thread safe manner
<li>CScriptBuilder::GetMetadataStringForFunc() and GetMetadataStringForTypeMethod() now takes a asIScriptFunction*
<li>The string pool is now threadsafe and supports multiple engines
<li>CSerializer now works when script class constructors modify global variables too (Thanks FDsagizi)
<li>Added method AddExtraObjectToStore on CSerializer to allow serializing objects not referenced by global variables in module (Thanks FDsagizi)
<li>Improved C++ interface for the CScriptHandle class to make it easier to use from application
<li>The CScriptHandle is now capable of casting to inherited script classes or implemented interfaces (Thanks saejox)
<li>The script array is using the nested context functionality to avoid instanciating temporary contexts
<li>PrintException() is properly reporting nested calls when printing the callstack
</ul>
</ul>
<h2>Version 2.23.1 - 2012/04/28</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed assert failure when loading bytecode containing calls to functions returning value types by value in an if-case (Thanks Markus Larsson)
<li>Fixed crash when compiling constructor and base class doesn't have default constructor (Thanks Ekimr)
<li>Fixed bug in asCScriptFunction (Thanks Richard Viney)
<li>Compiler no longer accepts non-handles with the identity operator 'is' (Thanks SadSingleton)
<li>Shared global functions didn't fail to compile unless the return type was 'void' (Thanks TheAtom)
<li>Fixed problem with global get property accessor that returns a POD value type (Thanks Andrew Ackermann)
<li>Fixed problem with global get property accessor with index that returns an object type (Thanks Andrew Ackermann)
<li>Fixed crash when loading bytecode that contained shared classes in specific scenarios (Thanks TheAtom)
<li>Fixed crash with native calling convention on 32bit Mac OS 10.7 with XCode 4.3 (Thanks Matt Bush)
<li>Fixed crash with compiling private virtual property accessors (Thanks SadSingleton)
<li>Fixed assert failure when compiling identity operator on non-handle operands (Thanks FDsagizi)
</ul>
<li>Script language
<ul>
<li>Added proper support for const overloads in property accessors (Thanks Andrew Ackermann)
</ul>
<li>Library
<ul>
<li>Changed config to enable multithread support on Mac OS X 64bit (Thanks Radu Braniste)
<li>Bytecode optimizer replaces PshNull, RefCpyV, PopPtr with FREE
<li>Bytecode optimizer removes CHKREF instructions before and after the ADDSi instruction
<li>Bytecode optimizer removes CHKREF instructions before RDSPtr instruction
<li>Bytecode optimizer replaces ChkRefS, RDSPtr with RDSPtr, CHKREF
<li>Removed unnecessary ADDREF to object pointer in some class methods
<li>For loop has been rearranged to avoid one JMP instruction
<li>Context writes messages to callback if application does something wrong with Prepare or Execute.
<li>Improved thread safety of the thread manager when multiple threads create separate engines (Thanks Carsten Orthbandt)
</ul>
<li>Virtual machine
<ul>
<li>Changed ADDSi to check if the pointer is a null pointer
<li>Changed RDSPtr to check if the pointer is a null pointer
<li>Renamed the bytecode POP to PopPtr, and removed it's argument as it was always popping a single pointer.
<li>Created the new instruction RefCpyV that is used to replace the oft occurring pair PSF and REFCPY
<li>Added JLowZ and JLowNZ to replace ClrHi + JZ and ClrHi + JNZ
<li>Added PshGPtr that replaces PGA + RDSPtr
<li>Removed the PUSH instruction
<li>The VM is guaranteed to call line callback at least once per function to allow interruption of inifinitely recursive calls (Thanks Philip Bennefall)
<li>LoadThisR and LoadRObjR raises exception if the loaded object pointer is null
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Added GetSize() and IsEmpty() to the dictionary add-on (Thanks _Vicious_)
<li>Added IsEmpty() to the array and string add-on (Thanks _Vicious_)
<li>Added Reserve() to the array add-on (Thanks Philip Bennefall)
<li>The string pool is now turned off by default, since it is not threadsafe. Turn it on with AS_USE_STRINGPOOL=1
<li>Array, string, and dictionary now register their methods using the names from STL if AS_USE_STLNAMES=1 is defined (Thanks Thomas Grip)
<li>Corrected the syntax in autowrapper add-on to allow it to compile for Android (Thanks brumi)
</ul>
</ul>
<h2>Version 2.23.0 - 2012/03/11</h2>
<ul>
<li>Bug fixes
<ul>
<li>Returning floats and doubles with native calling conventions wasn't working on Mac OSX Lion x64 with LLVM and -O0 (Thanks Jason Filsinger)
<li>The string factory can now be registered to return a reference to the string object (Thanks Philip Bennefall)
<li>The condition operator didn't accept when the two results differed in type with the only difference being const (Thanks Philip Bennefall)
<li>The information on local variables is now saved with the bytecode
<li>Fixed crash on Mac OS X 32bit with GCC 4.2 when compiling the library with optimizations (Thanks Matt Bush)
</ul>
<li>Library
<ul>
<li>By defining AS_NO_COMPILER the library can now be compiled without the script compiler for reducing the executable size (Thanks Philip Bennefall)
<li>The compiler will no longer share interface type ids unless the interfaces are explicitly marked as shared. Previous behaviour is still temporarily available with AS_DEPRECATED
<li>Improved some compiler messages
<li>Added configuration to allow the compilation for the Marmalade SDK (Thanks Kite and robt)
<li>Removed several compiler warnings for different compilers and target platforms (Thanks Richard Viney)
<li>Added asOBJ_NOCOUNT to support ref types that are not reference counted (Thanks virious)
<li>The saved bytecode is now independent of the platform's pointer size
</ul>
<li>Library interface
<ul>
<li>Added asIScriptContext::GetSystemFunction() that returns the registered function that is currently being called (Thanks rviney)
<li>Added asIScriptEngine::SetDefaultNamespace() permitting the application to register the interface in different namespaces
<li>Removed previously deprecated functions
<li>Added asIScriptEngine::GetGlobalPropertyIndexByName() and ByDecl()
<li>asIScriptContext::GetExceptionFunction() now returns a asIScriptFunction* instead of the function id
<li>Changed NotifyGarbageCollectorOfNewObject() to take asIObjectType* instead of type id
<li>Added asIScriptEngine::GetObjectTypeByName()
<li>Added accessMask argument in GetGlobalPropertyByIndex(), GetEnumByIndex(), GetTypedefByIndex(), and GetProperty()
<li>Removed configGroup argument in GetFuncDefByIndex() as this is already available in the asIScriptFunction interface
<li>Added GetAccessMask() to asIObjectType and asIScriptFunction
<li>Added asIScriptModule::RemoveFunction() that takes a pointer to asIScriptFunction
<li>Added asIScriptModule::GetObjectTypeByName()
<li>Added IsFinal(), IsOverride(), IsShared(), and GetNamespace() to asIScriptFunction
<li>Added includeNamespace argument to asIScriptFunction::GetDeclaration(), asIScriptModule::GetGlobalVarDeclaration(), and asIScriptEngine::GetTypeDeclaration()
<li>Added GetNamespace() to asIObjectType
<li>Added namespace argument to GetGlobalPropertyByIndex(), GetEnumByIndex(), GetTypedefByIndex(), and GetGlobalVar()
</ul>
<li>Script language
<ul>
<li>Enums can now be declared as shared across modules too
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Placed the CDebugger in the AngelScript namespace (Thanks Thomas Fischer)
<li>Fixed compilation problem in CScriptBuilder on XBox360 with regards to missing getcwd (Thanks virious)
<li>Updated CSerializer to support namespaces
<li>Updated WriteConfigToFile() to write the access mask and namespace
<li>Updated asbuild sample to support access mask and namespace
<li>Removed the C lib as standard add-on
<li>Implemented memory pool for string literals in the string add-on which will improve performance for scripts that uses a lot of string literals
<li>New implementation for the auto wrapper that eliminates the need to declare the wrappers before they can be registered (Thanks SiCrane)
<li>Added opEquals to the script array
<li>Added getKeys to the script dictionary (Thanks Philip Bennefall)
<li>Fixed script arrays with enums (Thanks Philip Bennefall)
<li>Fixed the script arrays so it can accepts opEquals and opCmp that take the other value by handle (Thanks Philip Bennefall)
<li>Sort, Find, and opEquals now works for arrays of handles too (Thanks Philip Bennefall)
</ul>
<li>Project
<ul>
<li>Renamed as_callfunc_arm_xcode.s to as_callfunc_arm_xcode.S to fix problem with scons on Mac (Thanks Richard Viney)
</ul>
</ul>
<h2>Version 2.22.2 - 2012/01/29</h2>
<ul>
<li>Bug fixes
<ul>
<li>Arrays of interfaces weren't properly handled when resolving equal interfaces in different modules (Thanks cvet)
<li>Shared code couldn't call template factories (Thanks TheAtom)
<li>Classes that contained shared classes as members would fail in the second module that declared the shared class (Thanks TheAtom)
<li>RegisterGlobalProperty was accepting null pointers (Thanks Quillraven)
<li>In some situations the value assign of a class member to an object would recieve the wrong reference (Thanks Philip Bennefall)
<li>Fixed segfault when compiling with -O2 on x86 32bit gnuc 4.6.1 (Thanks gdmarkou)
<li>Fixed problem with shared classes when the were orphaned (Thanks Thomas Grip)
<li>GetGlobalFunctionByDecl would return the wrong function (Thanks _Vicious_)
<li>Context failed when calling a system function through a function pointer (Thanks _Vicious_)
<li>Fixed problem when releasing engine while still holding a reference to a script function (Thanks _Vicious_)
</ul>
<li>Virtual machine
<ul>
<li>Created the instruction SwapPtr and removed the SWAP4, SWAP8, SWAP48, and SWAP84 instructions that were no longer used
<li>Created the instruction RDSPtr and removed the RDS4 and RDS8 instructions that won't be used anymore
<li>Created the instructions PshVPtr, PshNull that will be used for pointers instead of PshV4/8 and PshC4/8
<li>Created the instruction ClrVPtr that will be used for pointers instead of SetV4/8
<li>Created the instruction CmpPtr that will be used for pointers instead of CMPi or CMPi64
</ul>
<li>Library
<ul>
<li>Separated the bytecode loader and saver in two different classes
<li>Some code can be left out to create a smaller library if only pre-compiled bytecode is going to be used
<li>Replaced internal use of strtod() with my own implementation to improve portability
</ul>
<li>Script language
<ul>
<li>Global functions can now be marked as 'shared' too
<li>Added keyword 'namespace'
<li>It is now possible to declare entities in namespaces to avoid name conflicts
<li>The scope operator :: is used to explicitly specify in which namespace to look for symbols
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Made the script array more robust against out-of-memory conditions (Thanks Philip Bennefall)
<li>CScriptBuilder now properly extracts metadata for class methods and virtual properties (Thanks Ciaran Davies)
</ul>
</ul>
<h2>Version 2.22.1 - 2011/12/28</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug where passing inout ref to handle to a function didn't work properly with unsafe references turned on (Thanks TheAtom)
<li>Fixed bug with returning reference from temporary value type on stack (Thanks AgentC)
<li>Fixed assert failure on compilation error involving get_opIndex (Thanks Philip Bennefall)
<li>Fixed bug where a temporary variable was improperly reused under certain situations (Thanks Philip Bennefall)
<li>Fixed bug in native calling conventions for 64bit gnuc that was causing crashes on Mac OS X (Thanks dutt)
<li>Fixed bug with GetTypeIdByDecl when the declaration was a handle (Thanks scypior)
<li>Fixed problem where the compiler wasn't detecting that a class property didn't have a default constructor (Thanks pifor106)
</ul>
<li>Library
<ul>
<li>Added asOBJ_NOINHERIT that can be used to identify the script classes declared as final (Thanks InvalidPointer)
<li>Improved compiler performance when scripts have a lot of literal string constants (Thanks vroad)
<li>Optimized the algorithm for tokenizing the script, which will provide a significant performance improvement when compiling large scripts (Thanks m4ttbush)
<li>Added asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT to allow application to force the automatic implementation of default constructor and opAssign
<li>The compiler now avoids creating unnecessary temporary copies of objects when calling opAssign or copy constructor for the same type
<li>Engine writes more verbose errors for application interface configuration errors
<li>Added support for passing objects by value on 64bit GNUC when used with asOBJ_APP_CLASS_ALLINTS or asOBJ_APP_CLASS_ALLFLOATS
</ul>
<li>Script language
<ul>
<li>Added 'final' and 'override' keywords for improved control on how inheritance is implemented (Thanks InvalidPointer)
<li>Implemented an alternative shorter version for declaring get and set property accessors (Thanks InvalidPointer)
<li>Default constructor and opAssign is no longer implemented automatically if the script class has a non-default constructor
<li>The compiler no longer warns if 0 is passed to an output parameter, as it then assumes the result is meant to be ignored
<li>The compiler performs implicit conversions to objects registered as ASHANDLE by calling the available constructor
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Added GetMetadataStringForTypeMethod to CScriptBuilder (Thanks InvalidPointer)
<li>Added property accessors for length on the CScriptArray (Thanks InvalidPointer)
<li>Added scriptmathcomplex.cpp that implements a value type for mathematics with complex numbers
<li>Improved performance of script compilations with CScriptBuilder (Thanks m4ttbush)
<li>Fixed compilation error in CScriptBuilder when turning off metadata (Thanks Philip Bennefall)
<li>Removed scriptmath3d.cpp as a standard add-on
<li>Fixed some compiler warnings in CScriptFile add-on
<li>Implemented formatInt(), formatFloat(), parseInt(), and parseFloat() as string utilities
<li>Added property accessors for length on the string registration
<li>Removed the use of CGameObjLink in the game sample and registered the CGameObj directly with the script engine
<li>The game sample is now using the CScriptHandle to pass the message data between game objects
<li>Fixed a problem where the CScriptBuilder didn't find the metadata for class properties of non-primitive types (Thanks Carrot)
</ul>
</ul>
<h2>Version 2.22.0 - 2011/11/06</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug where compiler would incorrectly reuse a temporary variable when preparing arguments for a function call (Thanks Philip Bennefall)
<li>Fixed bug in CSerializer add-on that wasn't properly handling the fact that typeIds change for each compilation
<li>Fixed bug with indexed property accessor where only set accessor was available (Thanks virious)
<li>Fixed bug where default args for registered functions were not recognized (Thanks Takashi Yamamoto)
<li>Fixed problems when compiling the library with optimizations on 64bit GNUC (Thanks Jameson)
<li>Fixed assert failure in VM when using JIT compiled functions (Thanks Andrew Ackermann)
<li>Fixed a null pointer exception in the compiler when compiling an assignment and the left hand expression was invalid (Thanks TheAtom)
<li>Fixed bug with value cast operator that returned an object by value (Thanks pifor106)
<li>Fixed crash when compiling scripts that import global property accessors from other modules (Thanks Andrew Ackermann)
</ul>
<li>Library interface
<ul>
<li>Added user data to the asIObjectType and asIScriptModule interfaces, and corresponding cleanup callbacks to the asIScriptEngine interface
<li>Changed some return types from int to asUINT where the methods couldn't return a negative value
<li>Added a Prepare method to the context that takes the asIScriptFunction pointer instead of the function id
<li>Added GetGlobalFunctionByIndex and Decl to asIScriptEngine
<li>Deprecated GetFunctionDescriptorById in asIScriptEngine and asIScriptModule and replaced it with asIScriptEngine::GetFunctionById
<li>Added GetFunctionByName and Decl to asIScriptModule
<li>Deprecated asIScriptModule::GetFunctionDescriptorByIndex and replaced it with GetFunctionByIndex
<li>Deprecated asIScriptGeneric::GetFunctionDescriptor and replaced it with GetFunction
<li>Added GetFactoryByIndex and Decl to asIObjectType
<li>Added GetMethodByName and Decl to asIObjectType
<li>Deprecated asIObjectType::GetMethodDescriptorByIndex and replaced it with GetMethodByIndex
<li>Added asIScriptEngine::SetDefaultAccessMask and asIScriptModule::SetAccessMask, which deprecates SetConfigGroupModuleAccess
<li>The asJITFunction now takes a asPWORD as the second argument incase the compiler wants to store a pointer as the argument (Thanks Andrew Ackermann)
<li>Added Implements, DerivesFrom, and GetSubType to the asIObjectType interface
<li>Added overloads for AddRefScriptObject and ReleaseScriptObject that take a pointer to asIObjectType which makes them more efficient than the previous version
<li>Created the macro asOFFSET that does the same thing as offsetof, except that GNUC doesn't complain about using it
</ul>
<li>Library
<ul>
<li>The module's access to types, functions, properties, and even class members can now be set individually for each object through an access mask and is no longer tied to the configuration group
<li>Improved library against registered types that can form circular references but don't register the GC behaviours (Thanks Quittouff)
<li>Added engine property asEP_DISALLOW_GLOBAL_VARS
<li>Classes can now be shared between modules if they are compiled with the 'shared' keyword
<li>Added object type flag asOBJ_SHARED that identifies script classes that are shared between modules
</ul>
<li>Virtual Machine
<ul>
<li>Added the context pointer to the asSVMRegisters so the JIT function can immediately access this without calling asGetActiveContext (Thanks Andrew Ackermann)
<li>The JitEntry instruction will now invoke the JIT function without decreasing 1 from the argument set by the JIT compiler
<li>The JitEntry instruction can also immediately return from the execution in case the context has been suspended, aborted, or an exception has been set
</ul>
<li>Script language
<ul>
<li>Added the keyword 'shared' that can be used with classes and interfaces that should be shared between modules
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Improved the game sample to take advantage of the object type user data
<li>Improved the game sample to take advantage of the shared classes in the messaging between script objects
<li>Improved the game sample to report the compilation errors, instead of just continuing the execution without
<li>The #include directives in the CScriptBuilder add-on now accept strings within single-quotes too
<li>Added GetModule to the CScriptBuilder add-on
</ul>
</ul>
<h2>Version 2.21.2 - 2011/09/25</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a bug when passing value from property accessor to function inout reference parameter (Thanks scypior)
<li>Fixed a bug with function overloading and default args (Thanks cvet)
<li>Minor change to fix compiler error with CLang (Thanks Jeremy Harmon)
<li>The library was not detecting return of simple value type on Linux 64bit. It should give error as this is not supported due to the use of different registers based on type of class members. (Thanks toukkapoukka)
</ul>
<li>Library
<ul>
<li>Value types returned by value are now returned on the stack to reduce dynamic memory allocations
<li>Added the flag asOBJ_APP_CLASS_ALLINTS to inform that a registered type should be treated like all members are integers
<li>Added the flag asOBJ_APP_CLASS_ALLFLOATS to inform that a registered type should be treated like all members are float or doubles
</ul>
<li>Add-ons &amp; samples
<ul>
<li>The CScriptBuilder now supports metadata for class properties too (Thanks Thomas "Hardguy" Grip)
<li>Created a sample game that shows one way of integrating the script engine for game management
</ul>
</ul>
<h2>Version 2.21.1 - 2011/08/21</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed crash when doing a value assignment to a handle obtained from a property accessor (Thanks _orm_)
<li>Compiler will now give error when assigning to property of an object that is returned by value from a function
<li>Fixed bug in the std::string add-on in the boolean operators that concatenates a bool type to the string (Thanks Altren)
<li>Fixed bug when pass null to output parameter and the compiler didn't properly clean up the stack
<li>Fixed bug with ternary condition operator when the first option was null (Thanks TheAtom)
<li>Fixed bug with instanciating templates with subtypes of the same name as the internal template subtype (Thanks TheAtom)
<li>Fixed bug in debugger add-on when printing the value of an uint8 (Thanks Friggle)
<li>Fixed bug with handle assignment with set_opIndex (Thanks Lasse &Ouml;&ouml;rni)
</ul>
<li>Library
<ul>
<li>Added the asOBJ_ASHANDLE type flag. This will be used together with asOBJ_VALUE to allow application to register a container type that can store any handle type
<li>Implemented support for asBEHAVE_REF_CAST with the signature 'void f(?&amp;out)' which allow a cast to any handle type, evaluated at runtime
<li>asIScriptContext::Unprepare no longer free's the stack memory, so there is no performance penalty for that
<li>Added support for native calling conventions on Win64 with MinGW64 (Thanks _Vicious_)
</ul>
<li>Script language
<ul>
<li>The compiler will no longer warn if passing null to a function argument that is declared as an output handle
</ul>
<li>Add-ons
<ul>
<li>Added the CScriptHandle add-on which provides a default implementation of the new asOBJ_ASHANDLE type
<li>Updated the clib add-on to the latest interface (Thanks lexa-skripa)
<li>Added the CSerializer add-on which allow the application to backup values of variables in a module and then restore them (Thanks FDsagizi)
</ul>
</ul>
<h2>Version 2.21.0 - 2011/07/03</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed more compiler warnings for maximum warning level on MSVC (Thanks Thomas Fischer)
<li>Fixed crash if script tries to call function that has been declared incorrectly with default args (Thanks K&aacute;roly Pint&eacute;r)
<li>Fixed crash on MSVC when basic behaviour methods was implemented with multiple inheritance (Thanks Thomas Grip)
<li>Fixed bug when application compiles modules with imported functions over and over again, eventually crashing (Thanks loboWu)
<li>Fixed implicit conversion of negative float constant to uint making the value become 0 (Thanks Jeremy Harmon)
<li>Fixed bug with passing value types on stack to a function taking a var arg (Thanks immortius)
<li>Fixed native calling convention for objects with copy constructor on 64bit Windows with MSVC
<li>Fixed assembler code in as_Callfunc_x64_msvc_asm to allow stack unwinding in debugger (Thanks Zoner)
<li>It's now possible to use property accessor of another object of the same type from within a member property accessor (Thanks _orm_)
<li>Fixed crash if context is unprepared or released after SetObject but without calling Execute (Thanks immortius)
</ul>
<li>Virtual machine
<ul>
<li>The garbage collection is now automatically done by the VM during the execution, unless turned off by the application
<li>Improved the GC so now keeps 2 generations of objects. This will allow faster clean up of objects that live short times, thus improving performance
</ul>
<li>Library interface
<ul>
<li>Removed all previous deprecated code
<li>It is now possible to debug the initialization of global variables by passing a context to the ResetGlobalVars method
<li>Added asIScriptContext::IsVarInScope that the application can use to determine that the variable is actually visible at current program position
<li>Added engine property asEP_AUTO_GARBAGE_COLLECT that can be used to turn off the automatic garbage collection
<li>Added more parameters to the GetGCStatistics methods to get info on the new generation of objects
<li>Added asIScriptFunction::FindNextLineWithCode that a debugger can use to find a valid line with code to set breakpoints at
</ul>
<li>Library
<ul>
<li>Added configurations for native calling conventions on the Illumos operating system (Thanks Alexey A. Fakeyev)
<li>Improved error message in compiler when typing the wrong name for the data type in a variable declaration (Thanks Jeremy Harmon)
</ul>
<li>Script language
<ul>
<li>It is no longer prohibited to call functions in the expressions that initialize global variables.
<li>Implementation of interface methods can now be inherited from base class (Thanks Hardguy)
</ul>
<li>Project
<ul>
<li>Renamed as_callfunc_x64_msvc.asm to as_callfunc_x64_msvc_asm.asm to avoid conflict with as_callfunc_x64_msvc.cpp (Thanks Zoner)
</ul>
<li>Add-ons and samples
<ul>
<li>Added substr, findFirst, findLast, split, and join to the std::string registration
<li>Created the asrun sample
<li>Created the CDebugger add-on
<li>Removed CScriptString as standard add-on as it caused too many confusions
</ul>
</ul>
<h2>Version 2.20.3 - 2011/05/14</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compile warning on 64bit Mac (Thanks kainjow)
<li>Fixed native calling conventions on 64bit Mac for older GNUC compiler (Thanks Asgeir)
<li>Fixed bug in array add-on when declaring an array of void (Thanks Damian T0MALIK)
<li>Made the use of emms or fninit dynamic by defining macro CLEAR_FPU_STACK, as some projects needed it to be fninit (Thanks cvet)
<li>Fixed bug in compiler when a property that takes a reference in set accessor was used in a dual operator expression (Thanks Philip Bennefall)
<li>Properly handling loading bytecode that attempts to instanciate invalid template type
<li>Fixed a long standing bug with native class methods on iPhone (Thanks Pogacha)
<li>Fixed bug with asEP_ALLOW_UNSAFE_REFERENCES where it would allow casting a primitive type to another for reference parameters (Thanks cvet)
<li>Fixed crash with invalid script (Thanks arpeggiodragon)
<li>Fixed bug with private methods where the compiler was incorrectly invoking the base class constructor (Thanks Quittouff)
<li>Fixed bug with identifying shared interfaces in modules (Thanks TheAtom)
<li>Fixed some bugs related to enums (Thanks behc)
<li>Fixed compile error when attempting to assign to a member of a handle returned from another function (Thanks AgentC)
<li>Fixed null pointer access when compiling scripts that used write-only property accessors (Thanks Lasse &Ouml;&ouml;rni)
<li>Fixed problem with native calling conventions on PS3 and XBox 360 (Thanks kdroben)
</ul>
<li>Library
<ul>
<li>Added the flag asOBJ_APP_CLASS_COPY_CONSTRUCTOR so classes with non-trivial copy constructor can be recognized and treated properly in the native calling conventions (Thanks namtabmai)
<li>Improved the bytecode optimization
</ul>
<li>Script language
<ul>
<li>Added support for default arguments in functions
</ul>
<li>Virtual machine
<ul>
<li>Added bytecode instructions LoadRObjR, LoadVObjR
</ul>
<li>Add-ons
<ul>
<li>Added the methods sortAsc, sortDesc, reverse, and find to the script array add-on (Thanks Damian T0MALIK)
<li>Removed duplicated functions in string utils as they can now use default arguments instead
</ul>
</ul>
<h2>Version 2.20.2 - 2011/02/17</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug with division and modulo operations where the most significant bit of the value was set (Thanks loboWu)
<li>Fixed bug when calling copy constructor for value types allocated on the stack (Thanks speps)
<li>Using emms instead of fninit to preserve FPU configuration on x86 (Thanks Lasse &Ouml;&ouml;rni)
<li>Set property accessor that takes the value by ref was incorrectly accepted for increment/decrement operators (Thanks Philip Bennefall)
<li>When copying an object to remove constness the compiler wasn't handling objects allocated on the stack correctly (Thanks Philip Bennefall)
<li>Value cast of an object retrieved from a get accessor wasn't working properly (Thanks speps)
<li>Value types allocated on the stack didn't work correctly with the condition operator (Thanks speps)
<li>Fixed a bug in the std::string add-on add operator implementations where the input string was incorrectly modified (Thanks speps)
<li>Fixed bug with compiling explicit ref cast of temporary handle that produced invalid bytecode (Thanks mandrav)
<li>Fixed bug with bool, int8, and int16 types in native functions on xbox 360 (Thanks speps)
<li>Added validation to prevent registering function pointers without @ (Thanks behc)
<li>Fixed bugs when invoking a function pointer directly as class member (Thanks behc)
<li>Fixed bug in parser that didn't report error for not closing brackets when using index operator in expressions (Thanks speps)
<li>Fixed bug in compiler with unsafe references and value types (Thanks hemicube)
<li>Fixed inline assembly in as_callfunc_x64_gcc to support gcc optimizations (Thanks Samuel E. Henley)
</ul>
<li>Virtual machine
<ul>
<li>Added bytecode instructions DIVu, MODu, DIVu64, MODu64
<li>Unified a good part of the platform specific code into one common function
</ul>
<li>Library
<ul>
<li>Added configurations for Cygwin and Linux/ARM (Thanks Adrian Batzill)
</ul>
<li>Script language
<ul>
<li>It is now possible to declare function definitions that take other types as argument before the declaration of the other types
</ul>
<li>Add-ons
<ul>
<li>Added the copy constructor to the std::string registration
<li>Added swizzle operators xyz, yzx, zxy, zyx, yxz, and xzy to the vector3 add-on
</ul>
</ul>
<h2>Version 2.20.1 - 2010/12/10</h2>
<ul>
<li>Bug fixes
<ul>
<li>All the methods on asIScriptContext to inspect the call stack had an inverted index (Thanks Philip Bennefall)
<li>Fixed a problem during clean up of configuration groups in the engine destructor (Thanks Friggle)
<li>Fixed bug in calling convention for 32bit PPC when a value type is passed by value
</ul>
<li>Virtual machine
<ul>
<li>Local variables using registered value types are now allocated on the stack
</ul>
<li>Library interface
<ul>
<li>RegisterObjectType now returns the type id of the newly registered type to indicate success.
</ul>
<li>Add-ons &amp; samples
<ul>
<li>Added methods to CScriptFile add-on for reading and writing integers and floats, with configurable byte ordering
<li>The CContextMgr now invokes the garbage collector automatically
</ul>
</ul>
<h2>Version 2.20.0 - 2010/11/02</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug in parser when a function or method returned a handle to a template type (Thanks yzslhawk)
<li>Fixed the initialization order of some global variables that might get used by the engine if it is created in a global (Thanks heqing)
<li>If global variables in scripts were accessed during destruction of the script objects the application could crash when releasing the engine (Thanks TheAtom)
<li>Fixed bug on Android/GNUC involving the function type enum (Thanks Fredrik Ehnbom)
</ul>
<li>Library
<ul>
<li>Removed the built-in array type, the array type must be registered by the application instead
<li>Added support for native calling conventions on PS3 with SNC compiler (Thanks Kidneythief)
<li>Improved compiler error message when trying to declare variable in switch case
</ul>
<li>Library interface
<ul>
<li>Deprecated asBEHAVE_INDEX. Use opIndex method instead
<li>Improved const correctness of interface methods
<li>Added asIScriptFunction::IsPrivate and asIScriptObject::IsPropertyPrivate
<li>Removed asIScriptArray interface
<li>Added RegisterDefaultArrayType and GetDefaultArrayTypeId to asIScriptEngine
<li>Added asEP_EXPAND_DEF_ARRAY_TO_TMPL that tells the engine to format the declaration of the default array in the template form
<li>Removed the previously deprecated ExecuteString from script engine interface
<li>Added user data to the script function interface, and methods to retrieve it from the generic interface (Thanks Pierre Fortin)
<li>Added methods to asIScriptFunction to enumerate local variables (Thanks Ciaran "Carrot" Davies)
<li>Deprecated IsClassMethod and IsInterfaceMethod, use the new GetFuncType instead
<li>Added a parameter to the GetMethod methods to allow retrieving the real method instead of the virtual method
<li>Added the script section name to the functions that previously returned only line and column number
<li>Added GetGlobalVar to asIScriptModule
<li>Deprecated GetGlobalVarName and GetGlobalVarTypeId in asIScriptModule
<li>Added GetProperty and GetPropertyDeclaration to asIObjectType
<li>Deprecated GetPropertyName, GetPropertyTypeId, IsPropertyPrivate, and GetPropertyOffset in asIObjectType
<li>Added ability to set callback functions for cleaning up the user data when the objects are destroyed
<li>Deprecated GetCurrentFunction and GetCurrentLineNumber from asIScriptContext
<li>Removed GetCallStackFunction and GetCallStackLineNumber from asIScriptContext
<li>Added GetFunction and GetLineNumber to asIScriptContext
<li>Changed index parameter for the methods GetVarXXX, GetAddressOfVar, GetThisXXX in asIScriptContext so the current function is on 0
</ul>
<li>Script language
<ul>
<li>Added support for the opPostInc, opPostDec, opPreInc, and opPreDec operator overloads (Thanks droz)
<li>Added support for get_opIndex and set_opIndex to allow property accessors for the index operator
<li>Property accessors can now accept an index argument to emulate an array
</ul>
<li>Project
<ul>
<li>Removed as_arrayobject.h and as_arrayobject.cpp
</ul>
<li>Add-ons &amp; samples
<ul>
<li>The script array add-on can now be registered as the default array type
<li>Improved asbuild to support registration of template types and default array
<li>Improved WriteConfigToFile the same way
<li>Implemented InsertAt, RemoveAt, InsertLast, and RemoveLast for the array add-on
<li>Fixed compiler warnings in autowrappedcall.h when working with functions that take parameters by reference (Thanks Pierre Fortin)
<li>Further improvements to autowrappedcall to support asCALL_CDECL_OBJLAST and OBJFIRST (Thanks Pierre Fortin)
<li>Added PrintException as helper function
</ul>
</ul>
<h2>Version 2.19.2 - 2010/09/05</h2>
<ul>
<li>Bug fixes
<ul>
<li>Compiler no longer crashes on empty heredoc strings (Thanks Thy Reaper)
<li>Fixed problem in compiler when switch condition had deferred parameters (Thanks Philip Bennefall)
<li>It is no longer possible to register a global function with const modifier (Thanks cvet)
<li>Fixed bug in built-in array object that prevented the GC from breaking circular references (Thanks cvet)
<li>Fixed bug in restoring bytecode that didn't properly detect when arrays needed to be garbage collected (Thanks cvet)
<li>Restoring bytecode to multiple modules with shared interfaces no longer crashes the application (Thanks TheAtom)
<li>Fixed bug with comparison of primitive returned by reference from property accessor (Thanks mk1x86)
<li>Fixed implicit conversion from enum to double (Thanks Philip Bennefall)
</ul>
<li>Library
<ul>
<li>Added explaining messages to callback when failing to initialize a global variable after a compilation
<li>Improved validation during loading bytecode to avoid crashes on invalid files
<li>Improved the way class methods with virtual inheritance on MSVC 32bit is registered, so that this is now properly detected and gives an error (Thanks vroad)
<li>Added configurations for native calling conventions on FreeBSD x64 and Haiku (Thanks droz)
</ul>
<li>Script language
<ul>
<li>It is now also permitted to return a reference to the 'this' pointer
<li>A get accessor can now return a handle, while the set accessor takes a value or reference. This allow the property to behave as a value property, even though a new object is created each time it's value is taken.
<li>Class methods can now be declared as private
<li>Float numbers can now be written as .42, without the leading 0
<li>Enum types prioritizes implicit conversions to int before other primitive types when matching multiple function overloads
</ul>
<li>Virtual machine
<ul>
<li>Added PshV8 for improved bytecode optimizations on 64bit platforms
</ul>
<li>Add-ons &amp; Samples
<ul>
<li>Made the addref/release methods on the add-ons const, so they can be used on const pointers as well
<li>Added operators to the string add-ons to allow conversion of bool to string
<li>Changed the index behaviour for the string add-ons to opIndex methods
<li>Implemented a generic offline script compiler, that shows how a dummy application interface is registered to allow compiling scripts to file
<li>Added WriteConfigToFile helper function that automatically creates the config file for the generic offline compiler
</ul>
</ul>
<h2>Version 2.19.1 - 2010/08/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed null pointer exception on specific compiler error (Thanks _orm_)
<li>Fixed precompiled byte code with enum types and arrays (Thanks hoboaki)
<li>The CAST instruction wasn't properly saved and loaded (Thanks hoboaki)
<li>Fixed bug with implicit conversion from 'const obj' to 'obj' (Thanks hoboaki)
<li>Fixed crash on compiler error where a variable is declared twice (Thanks Philip Bennefall)
<li>It is no longer possible to declare a class method with the name of the class (Thanks xadhoom)
<li>Fixed bug with implicit conversion from reference to primitive (Thanks Thy Reaper)
<li>asIScriptModule::GetFunctionIdByIndex is now returning the correct id (Thanks mandrav)
<li>Compiling the library with AS_DOUBLEBYTE_CHARSET is now working again (Thanks UeSyu)
<li>Removed unnecessary creation temporary copy when doing an assignment using the default copy behaviour (Thanks mandrav)
<li>Fixed assert failure on clean-up with registered function definitions (Thanks Engin Lee)
<li>Fixed problem with temporary variable being overwritten when evaluating the output parameters (Thanks IndependentHat)
<li>Fixed error in compiler where the expression in the switch case wasn't converted correctly if it wasn't a local variable (Thanks mandrav)
</ul>
<li>Library
<ul>
<li>The saved bytecode is now independent of object property offsets
<li>The script section names are now stored with the saved bytecode
<li>Added compatibility with Mac OS X on x64 CPUs (Thanks Zerotri)
</ul>
<li>Script language
<ul>
<li>Added support for returning references from script functions
<li>Added support for the opIndex operator overload method
<li>It is now allowed to declare functions with 'void' parameter lists
<li>Added reserved keyword 'private'
<li>Class properties can now be declared as private (Thanks InvalidPointer)
</ul>
<li>Virtual machine
<ul>
<li>Added the instruction LoadThisR that is used to load the address of a property into the register.
</ul>
<li>Add-ons
<ul>
<li>Implemented the opAssign method for the dictionary add-on so it can be copied.
</ul>
</ul>
<h2>Version 2.19.0 - 2010/06/27</h2>
<ul>
<li>Bug fixes
<ul>
<li>The compiler was incorrectly treating enums as having 8 bytes on 64bit platforms (Thanks Nalin)
<li>Fixed crash when compiling scripts that contains inheritance of invalid classes (Thanks Tyler Spivey)
<li>Fixed bug when compiling a return statement that calls a get accessor (Thanks Tyler Spivey)
<li>Fixed calling property accessor surrounded by parenthesis (Thanks cvet)
<li>Compiler no longer hangs on compiling enum declarations with name conflicts (Thanks hoboaki)
<li>Property accessors will no longer call themselves if attempting to access true property of the same name (Thanks Philip Bennefall)
<li>Fixed bug with property accessors in switch expression (Thanks Philip Bennefall)
<li>Fixed bug with incremental garbage collector (Thanks hoboaki)
<li>Saving byte code that used template classes didn't work properly (Thanks hoboaki)
<li>Fixed bug with property accessors in type conversions (Thanks Philip Bennefall)
<li>Fixed assert failure on comp<6D>lation error with undeclared variable (Thanks Philip Bennefall)
<li>Fixed bug with implicit ref casts for global variables (Thanks Gilad Novik)
<li>Fixes to the Xbox 360 calling convention codes (Thanks Cyril Tissier)
<li>Fixed bug in the bytecode optimization on big endian CPUs (Thanks Remi Gillig)
<li>Fixed buffer overflow in as_callfunc_x64_gcc.cpp (Thanks Mikhail Efremov)
<li>Fixed a bug with use of templates in script classes (Thanks xadhoom)
<li>Fixed problem with loading script that contained template types that refer to classes defined later in script (Thanks hoboaki)
<li>Fixed memory leak when cyclic reference between script class types and templates existed (Thanks hoboaki)
<li>Fixed assert failure when compiling script with void expression in while condition (Thanks Philip Bennefall)
<li>Fixed bug in compiler where in a very specific case it would lose the value of a reference (Thanks Lars Peter)
</ul>
<li>Library
<ul>
<li>Improved the size of the saved bytecode
<li>The saved bytecode is now byteorder independent
<li>Added the ability to disable property accessors through the engine property asEP_PROPERTY_ACCESSOR_MODE (Thanks Philip Bennefall)
<li>Improved support for Borland C++Builder (Thanks Moritz Beutel)
</ul>
<li>Library interface
<ul>
<li>Added RegisterFuncdef that allows the application to register function definitions for function pointers it wishes to receive
<li>Added GetFuncdefCount and GetFuncdefByIndex to enumerate the registered function definitions
</ul>
<li>Script language
<ul>
<li>Added a factory for the built-in array to allow setting the default value of elements upon initialization. This in turn allows the initialization of multidimensional arrays in one call.
</ul>
<li>Add-ons
<ul>
<li>Added a factory for the template array to allow setting the default value of elements upon initialization
</ul>
</ul>
<h2>Version 2.18.2 - 2010/03/14</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a bug in the compiler where in certain condition it would incorrectly reuse a temporary variable (Thanks Thy Reaper)
<li>Fixed a bug for property accessors in while and do-while conditions (Thanks Philip Bennefall)
<li>Fixed a bug for property accessors for objects in arrays (Thanks Philip Bennefall)
<li>Fixed a bug in the compiler where an invalid script could crash it (Thanks klusark)
<li>Variable declaration of script class with opAssign and assignment initialization wasn't releasing a temporary variable (Thanks hoboaki)
<li>When growing the stack the virtual machine wasn't copying the object pointer for class methods, leading to crashes (Thanks klusark)
<li>Implicit conversion from handle to reference is no longer giving compiler error (Thanks Thy Reaper)
<li>Fixed property accessors when used from within a class method (Thanks hoboaki)
<li>Fixed a bug with native calling conventions on 64bit Linux (Thanks namtabmai)
<li>Fixed bug with posix threads on 64bit platforms (Thanks Hideaki Imaizumi)
</ul>
<li>Script language
<ul>
<li>The language now supports function pointers to global functions.
<li>Added the keyword 'funcdef' that is used to declare function signatures for function pointers.
</ul>
<li>Virtual machine
<ul>
<li>Added the instruction CallPtr that is used to call a function stored in a function pointer.
<li>Added the instruction FuncPtr that is used to push the pointer of a function on the stack.
</ul>
</ul>
<h2>Version 2.18.1 - 2010/01/17</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compiler error on GNUC (Thanks Samuel E. Henley)
<li>Missing text literal on 64bit Linux (Thanks Gibbon_99)
<li>Aborting a context only suspended the execution (Thanks Friggle)
<li>Characters above 127 were incorrectly converted to UTF8 when the scanner was set to ASCII (Thanks Friggle)
<li>When saving the bytecode the string constants got shuffled around (Thanks kk)
<li>Reference casts for null values incorrectly raised null pointer exceptions (Thanks Thy Reaper)
</ul>
<li>Virtual machine
<ul>
<li>Changed the bytecode instructions PGA, LDG, LdGRdR4, CpyVToG4, CpyGToV4, SetG4, and PshG4 to hold the address of the global variable in the argument directly
<li>Removed the globalVarPointers from the asSVMRegisters structure
<li>Changed the bytecode FREE to take the variable index directly in the argument instead of reading the reference from the stack
</ul>
<li>Library interface
<ul>
<li>Added the behaviour asBEHAVE_LIST_FACTORY, that is exclusively used to initialize a reference type with an initialization list.
</ul>
<li>Library
<ul>
<li>The compiler now attempts to use the copy constructor when creating temporary copies of objects (Thanks Wracky)
<li>Added support for native calling conventions on Win64 with MSVC
<li>Added several bytecode optimizations that should reduce the number of instructions and increase runtime performance
</ul>
<li>Script language
<ul>
<li>Property accessors may now be used for global variables as well
</ul>
<li>Add-ons
<ul>
<li>Improved the script array add-on to support initialization of the arrays through initialization lists
</ul>
<li>Project
<ul>
<li>Added as_callfunc_x64_msvc.asm and as_callfunc_x64_msvc.cpp to add support for native calling conventions on 64bit Windows
</ul>
</ul>
<h2>Version 2.18.0 - 2009/12/16</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed assert in compiler when accessing property through temporary object (Thanks Scarabus2)
<li>Fixed crash with too large array sizes, both for built-in array and array add-on (Thanks loboWu)
<li>Fixed memory leak when an exception occurred in ExecuteString, and another ExecuteString was called afterwards
<li>Fixed improper re-use of temporary variable by property get accessor when compiling binary operators (Thanks Scarabus2)
<li>Fixed a bug in array template add-on with max portability mode (Thanks quarnster)
</ul>
<li>Library interface
<ul>
<li>Added asIScriptModule::CompileFunction() for dynamically compiling a single function that can be executed, and optionally added to the module
<li>Added asIScriptFunction::GetId()
<li>Added asIScriptModule::RemoveFunction() for dynamically removing a single function from the scope
<li>Deprecated the asIScriptEngine::ExecuteString method. An add-on has been provided to replace it
<li>Removed the error code asMODULE_IS_IN_USE as it is no longer used
<li>Removed old deprecated methods
<li>Added asIScriptModule::CompileGlobalVar() and RemoveGlobalVar() for dynamically adding and removing single global variables to and from the module
</ul>
<li>Library
<ul>
<li>Added support for UTF-16 encoded string literals through dynamic engine property asEP_STRING_ENCODING (Thanks Jubok Kim)
<li>Each global variable has it's own intialization function now, which will allow individual globals to be added or removed dynamically
<li>Each script function now holds its own list of accessed global variables, so they do not have to go back to the module for that info
<li>Added support for native calling conventions on iPhone (Thanks Fredrik Ehnbom)
<li>String constants are now stored in the engine and shared between modules
<li>The context no longer references the module, as script functions no longer depend on the module for anything
<li>Changed the script functions to use reference counting
<li>Improved compiler messages when function arguments doesn't match available functions (Thanks droz)
</ul>
<li>Add-ons
<ul>
<li>Added the global helper function ExecuteString, which replaces the asIScriptEngine::ExecuteString method
</ul>
<li>Project
<ul>
<li>Renamed the as_callfunc_armasm.asm to as_callfunc_arm_msvc.asm
<li>Renamed the as_callfunc_armasm.S to as_callfunc_arm_gcc.S
<li>Added as_callfunc_arm_xcode.s which is the Apple XCode assembler code for arm CPUs (Thanks Gilad Novik)
<li>Added as_globalproperty.cpp
</ul>
</ul>
<h2>Version 2.17.2 - 2009/10/18</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed assert failure after compiler error in construct call (Thanks loboWu)
<li>Fixed bug in compiler that freed objects returned by value too early (Thanks xivVerge)
<li>Class methods are now allowed to be registered to types registered in previous config groups (Thanks Wavesonics)
<li>Template factory stubs weren't removing arguments from the stack (Thanks loboWu)
</ul>
<li>Script language
<ul>
<li>Ref classes without default factory can now be instanciated by explicitly calling one of the non-default factories (Thanks Wracky)
</ul>
<li>Library
<ul>
<li>Added the object behaviour asBEHAVE_TEMPLATE_CALLBACK, which is used to perform compile time validation of template instances
</ul>
<li>Add-ons
<ul>
<li>Fixed bug in CScriptBuilder to avoid endless loops in default include handler (Thanks leave)
</ul>
</ul>
<h2>Version 2.17.1 - 2009/09/16</h2>
<ul>
<li>Bug fixes
<ul>
<li>Loading pre-compiled bytecode for scripts that used registered functions that included the built-in array type in the signature crashed (Thanks loboWu)
<li>Fixed the parsing of templates to accept handles as subtypes (Thanks dxj19831029)
<li>Fixed bug with &amp;inout and constants for invalid scripts (Thanks scypior)
<li>Fixed crash when loading pre-compiled bytecode that had classes with enums as members (Thanks huangyous)
<li>Fixed memory access violation in CContextMgr add-on (Thanks Kim PoongHo)
</ul>
<li>Library
<ul>
<li>Improved the registerable template types to also support a template type as subtype.
<li>Loading pre-compiled bytecode is now agnostic of the order that global properties were registered.
</ul>
<li>Script language
<ul>
<li>Added support for class property get and set accessors.
</ul>
<li>Project
<ul>
<li>Added compile time option to GNUC makefile to build a shared library (Thanks Dan Hor&aacute;k)
<li>Added as_callfunc_armasm.S, which is an adaption of the MSVC assembler code in as_callfunc_armasm.asm to GNUC assembler (Thanks darktemplar216)
<li>Added configurations in as_config.h to detect the Android OS and enable support for native calling conventions on ARM for it (Thanks sliao)
</ul>
<li>Add-ons
<ul>
<li>Improved the script builder to allow custom processing of include directives via a callback
<li>Improved memory management in CContextMgr to reduce run-time allocations by pooling objects
</ul>
</ul>
<h2>Version 2.17.0 - 2009/08/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compiler error in the XBox 360 specific code. (Thanks Marc Hanson)
<li>Scoped reference types can now be members of script classes. (Thanks Jeff Slutter)
<li>Fixed crash in compiler on invalid script (Thanks cvet)
<li>Reference types that had been registered with zero size wasn't allowed as members of script classes. (Thanks Friggle)
<li>Added validation for duplicate switch cases in script compiler (Thanks loboWu)
</ul>
<li>Library
<ul>
<li>Removed all old deprecated functionality
<li>The built-in array type is now completely unaware of the library internals and uses only the public interface
<li>Unified parts of the code for native calling conventions to improve maintainability
<li>Informing the application type when registering a value type is now only required if the type is returned by value or passed by value to a function with native calling convention
<li>Added engine property asEP_INCLUDE_JIT_INSTRUCTIONS to indicate if the JIT bytecode instructions should be included or not. Defaults to off.
<li>The variant parameter, ?, now receive a reference to the actual object if the argument is not a handle (Thanks IndependentHat)
</ul>
<li>Library interface
<ul>
<li>Added GetTypeId, GetSubTypeId, AddRef, and Release to asIObjectType
<li>Created the interface for an external JIT compiler plug-in (Thanks Fredrik Ehnbom)
<li>Deprecated RegisterGlobalBehaviour, GetGlobalBehaviourCount, and GetGlobalBehaviourByIndex. These behaviours should use the new class methods instead.
<li>Deprecated CompareScriptObjects. Use the helper functions CompareRelation or CompareEquality from the add-ons instead.
<li>Deprecated all assignment behaviours and the negate behaviour. These behaviours should use the new class methods instead.
<li>Changed asBEHAVE_REF_CAST and asBEHAVE_IMPLICIT_REF_CAST to be registered as object behaviours. Verify the documentation for implementation changes.
<li>Added AddRef, Release, IsReadOnly, and GetByteCode methods to asIScriptFunction.
<li>Deprecated asIScriptObject's GetPropertyPointer, which has been replaced with GetAddressOfProperty.
<li>Deprecated asIScriptContext's GetArgPointer, which has been replaced with GetAddressOfArg.
</ul>
<li>Virtual machine
<ul>
<li>Added bytecode instruction JitEntry that transfers control to the JIT compiled function
<li>Renamed SET8 to PshC8
</ul>
<li>Add-ons
<ul>
<li>Added the atan2 function to the math add-on
<li>Added the helper functions CompareRelation and CompareEquality as add-ons
<li>Added a template script array object
<li>Implemented the CContextMgr add-on that supports co-routines and concurrent script threads
</ul>
<li>Project
<ul>
<li>Removed as_bytecodedef.h as its content has been moved to angelscript.h
<li>Renamed as_scriptstruct files to as_scriptobject
</ul>
</ul>
<h2>Version 2.16.3 - 2009/07/05</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug in compiler when passing a constant to argument expecting out ref.
</ul>
<li>Library
<ul>
<li>Added support for native calling conventions for ARM processors with MSVC compiler (Thanks Fredrik Ehnbom)
</ul>
<li>Script language
<ul>
<li>Script classes can now implement operator overloads for all dual operators with specific class methods
<li>Script classes can also implement overloads for the unary negate and bit complement operators
<li>An if condition followed by an empty statement will now give a compiler error (Thanks asterix12)
</ul>
</ul>
<h2>Version 2.16.2 - 2009/06/07</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed crash after call to DiscardModule where GC held objects declared by the module (Thanks Jeff Slutter)
<li>Fixed crash on compiling invalid script (Thanks cvet)
<li>Fixed bug with virtual function table and multiple levels of inheritance (Thanks huangyous)
<li>Fixed some compatibility issues with MSVC and 64bit targets
<li>Fixed bug with implicit cast of const ref type to non-const ref type (Thanks cvet)
<li>The asFUNCTIONPR and asMETHODPR no longer accepts pointers to functions that are not exactly like the specified one (Thanks Wavesonics)
<li>Fixed crash on compiling global variable of registered type with missing copy behaviour (Thanks 39ster)
<li>Fixed value of asTYPEID_SCRIPTOBJECT to be just 1 bit (Thanks SiCrane)
<li>Fixed bug in string add-ons where the full string wouldn't be created by the factory if it contained null characters.
<li>Fixed rare bug when script called application function with float args and the application uses full optimization (this time on GNUC/x86) (Thanks kunitoki)
<li>Fixed alignment bug for script class properties (Thanks Fredrik Ehnbom)
</ul>
<li>Library
<ul>
<li>Build and ResetGlobalVars now return an error if the initialization of the global variables fails.
<li>Changed initialization of global variables so that variables of primitive types are initialized first. (Thanks Friggle)
<li>Added informational message to better explain the error 'missing behaviours' on invalid registration.
<li>It is now possible for the application to register template types, though the feature is still not considered complete.
<li>Added asEP_SCRIPT_SCANNER property for choosing between ASCII and UTF8 script encoding. Default is UTF8.
</ul>
<li>Script language
<ul>
<li>Added support for string escape sequences \uFFFF and \UFFFFFFFF for inserting unicode characters in string constants.
</ul>
</ul>
<h2>Version 2.16.1 - 2009/05/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug with implicit conversion from temporary 'const obj @' to 'obj &amp;' (Thanks Jeff Slutter)
<li>Fixed problem with float values and locale (Thanks scypior)
<li>Fixed incorrect conversion of null handle to primitive (Thanks cvet)
<li>Fixed crash when assigning array to itself (Thanks cvet)
<li>Fixed assert failure after invalid conditional expression (Thanks Jeff Slutter)
<li>Fixed bug in compiler when attempting to return null handle for a function declared to return object by value (Thanks marvi)
<li>Compiler is now giving a proper error when script function returns reference (Thanks marvi)
<li>Fixed crash when a script constructor that receives object handle throws an exception (Thanks cvet)
<li>Fixed implicit value cast to another object type (Thanks SiCrane)
<li>Fixed multithread support on FreeBSD (Thanks droz)
<li>Character literals for characters above ASCII 127 are now compiled correctly (Thanks cvet)
<li>Fixed rare bug when script called application function with float args and the application uses full optimization (Thanks Jeff Slutter and DaBono)
</ul>
<li>Library
<ul>
<li>The built-in array type is now implemented using a template type.
<li>The tokenizer now recognizes the UTF8 byte-order-mark as whitespace permitting the compilation of UTF8 encoded scripts.
<li>Added support for multibyte character sets through the preprocessor flag AS_DOUBLEBYTE_CHARSET, it's recommended to use UTF8 instead though. (Thanks loverlin)
<li>Added asEP_REQUIRE_ENUM_SCOPE to force the use of enum scope when accessing enum values. (Thanks Jeff Slutter)
<li>The value cast behaviour can now be used to instanciate an object type if the type doesn't have the appropriate constructor. (Thanks SiCrane)
<li>The callstack is no longer cleaned up immediately on an exception, thus allowing the examination of it even after Execute returns.
</ul>
<li>Script language
<ul>
<li>Enum values can now be prefixed with the enum type to give the exact enum value when multiple enums declare the same name. (Thanks Jeff Slutter)
</ul>
<li>Add-ons
<ul>
<li>CScriptBuilder is now better at handling relative include paths (Stuart Golodetz)
</ul>
</ul>
<h2>Version 2.16.0 - 2009/03/30</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed bug in compiler where temporary variable was freed twice during compound assignments with some complex lvalue expressions (Thanks _Vicious_)
<li>Fixed crash when parsing invalid typedefs.
<li>Typedefs declared in scripts now accept float and double as well.
<li>Fixed crash when compiling handle comparison with invalid types (Thanks _Vicious_)
<li>It's now possible to determine type id for handle to scoped reference types (Thanks Jeff Slutter)
<li>Unary operators weren't supported for enum types (Thanks jal_)
<li>Fixed crash when declaring a script class that inherits from a class declared below it (Thanks Zeu5)
<li>Fixed bug when registering an interface after previously removing dynamic config group (Thanks Zeu5)
<li>Fixed bug in CScriptBuilder add-on that broke global declarations with array types (Thanks except134)
<li>Fixed problem with class inheritance and order of declaration (Thanks Zeu5)
<li>Fixed assert failure after compile error (Thanks Cliff Cawley)
</ul>
<li>Library
<ul>
<li>All primitive types now have fixed type ids, so it is no longer necessary to call the GetTypeIdByDecl method to obtain their ids.
<li>Removed the AS_NO_USER_ALLOC config option.
<li>Enumeration of functions in the modules now only return global functions.
<li>Enumeration of object types in modules now only return classes and interfaces.
<li>Added engine property asEP_BUILD_WITHOUT_LINE_CUES (replaces the config option).
<li>Added engine property asEP_INIT_GLOBAL_VARS_AFTER_BUILD, which will allow compiling scripts without having the implementation of the application functions.
<li>Enumeration of object types in the engine now only return registered object types.
</ul>
<li>Library interface
<ul>
<li>Removed some functions that had been deprecated in version 2.14.0.
<li>Renamed asIScriptStruct to asIScriptObject.
<li>Renamed GetStructTypeId to GetTypeId in asIScriptObject.
<li>Added enumeration of factory functions and behaviours to asIObjectType.
<li>Added GetBaseType, GetFlags, GetSize, and GetPropertyOffset to asIObjectType.
<li>Deprecated GetSubType and IsInterface in asIObjectType.
<li>Added enumeration of enums and typedefs to asIScriptModule.
<li>Added enumeration of registered functions, properties, enums, and typedefs to asIScriptEngine.
<li>Added parameter to asIScriptFunction::GetDeclaration to include or not the object name in the returned string.
<li>Removed all output length parameters for functions that returned strings, all strings are null terminated anyway.
<li>Deprecated GetReturnPointer in asIScriptGeneric, replaced by GetAddressOfReturnLocation.
</ul>
<li>Add-ons
<ul>
<li>Added registration of std::string as a standard add-on, complementing the CScriptString
<li>Added resize method to the string add-ons
<li>Changed CScriptFile to be compatible with both std::string and CScriptString
<li>Modified CScriptBuilder to permit enabling/disabling metadata processing through preprocessor define
<li>Added autowrapper add-on that automatically generates wrappers for the generic calling convention for functions and class methods (Thanks George Yohng)
<li>Added registration of the double counter parts to the math functions
</ul>
</ul>
<h2>Version 2.15.2 - 2009/02/22</h2>
<ul>
<li>Bug fixes
<ul>
<li>The pre-compiled bytecode didn't store the script class destructors, nor the implemented interfaces
<li>Script class factories didn't work for constructors with more than 1 argument (Thanks BornToCode and scypior)
<li>Changed as_atomic.cpp to use critical sections for older versions of GCC on Linux (Thanks _Vicious_)
<li>Fixed some 64bit compatibility issues (Thanks Ionut "gargltk" Leonte and _Vicious_)
<li>Fixed dangling pointer problem after removing dynamic configuration group (Thanks Ionut "gargltk" Leonte)
</ul>
<li>Script language
<ul>
<li>Added support for single inheritance for script classes
<li>Added support for scope resolution operator
</ul>
<li>Library
<ul>
<li>Added support for native calling conventions on 64bit Linux (Thanks Ionut "gargltk" Leonte)
</ul>
<li>Add-ons
<ul>
<li>Implemented readLine, isEndOfFile, writeString, getPos, setPos, and movePos for the CScriptFile
<li>Removed use of bool in the C library header (Thanks Gibbon_99)
<li>Added support for #if/#endif preprocessor directives to the CScriptBuilder
</ul>
</ul>
<h2>Version 2.15.1 - 2009/01/25</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a bug with bitwise operators and 8/16 bit integer types (Thanks jkhax0r)
<li>Fixed the error message when no matching constructor is found for a construct call
<li>Fixed bug when compiling expressions that called index operator that returned an object by value on a temporary variable (Thanks dxj19831029)
<li>Saved pre-compiled bytecode didn't store the read-only flag for class methods
<li>Fixed bug where class method calls that returned a reference to a member of the class would release the class before the reference was used
<li>Fixed bug that allowed object handles for value types (Thanks Wavesonics)
<li>Modified as_atomic.h to avoid use of kernel specific atomic.h on Linux (Thanks namtabmai)
<li>Fixed compile error in as_callfunc_x86.cpp on GNUC when using -O3 option (Thanks bigjo)
<li>Fixed the calling conventions for MinGW on Windows
</ul>
<li>Library
<ul>
<li>Internally reference types (including script classes) are now allocated by calling the factory function directly
<li>Updated as_config to properly identify operating system, thus improving multithreading performance
<li>Created script factory stub functions for instanciating template types, thus simplifying script compiler
<li>The memory for global variables declared in scripts is now allocated individually, which will allow more flexibility
</ul>
<li>Add-ons
<ul>
<li>Added the generic interface to the CScriptFile object
</ul>
</ul>
<h2>Version 2.15.0 - 2008/12/13</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed assignments where the rvalue is a temporary object instanciated with a construct call (Thanks SiCrane)
<li>The parser no longer accepts other digits than 0 to initiate a hex literal value (Thanks SiCrane)
<li>Fixed compiler error in as_callfunc_ppc_64.cpp (Thanks James Chan)
<li>Fixed saving bytecode with enums (Thanks loboWu)
<li>Fixed the index operator call on temporary object that caused an invalid reference (Thanks dxj19831029)
<li>Fixed bug in the tokenizer and the !in token versus identifier (Thanks xivVerge)
<li>Script functions can now be declared to return const types (Thanks SiCrane)
<li>Fixed multithread problem in memory manager for the script node pool (Thanks xivVerge)
<li>Fixed assert failure after compilation error with ref cast operator (Thanks Jeff Slutter)
<li>Fixed compiler warnings for g++ 4.3.2 (Thanks Matt Williams)
</ul>
<li>Library interface
<ul>
<li>Changed the parameters for the engine's GarbageCollect method to give more control to the application
<li>Replaced GetObjectsInGarbageCollectorCount in the engine interface with GetGCStatistics
<li>Added GetEngine to asIScriptStruct and asIScriptArray
<li>Replaced GetVarPointer and GetReturnPointer in the context interface with GetAddressOfVar and GetAddressOfReturnValue respectively
<li>Replaced GetArgPointer in the generic interface with GetAddressOfArg
<li>Added SetUserData/GetUserData to the engine interface
<li>Added the ParseToken method to the engine interface, useful for IDEs that provide syntax highlighting or intellisense
<li>Removed deprecated GetMethodDescriptorByIndex, GetMethodCount, GetMethodIDByIndex, GetMethodIDByName, GetMethodIDByDecl from engine interface
<li>Removed deprecated GetFunctionDeclaration, GetFunctionModule, GetFunctionSection, GetFunctionName from engine interface
<li>Removed deprecated SetDefaultContextStackSize from engine interface
<li>Added asIScriptModule, which will be used to interact with the modules directly, instead of through the engine interface
<li>Added GetModule to the engine
<li>Deprecated the methods in the engine for interacting with the modules, as these methods are now available in the module interface
<li>Added GetGlobalVarTypeId to the module interface. There were no corresponding method for this in the engine interface
<li>Renamed Discard in the engine interface to DiscardModule
<li>Modified the GetTypeIdByDecl in the engine interface to take only the declaration and not the module name
</ul>
<li>Library
<ul>
<li>Configured the library to work with Nintendo Wii (Thanks James Chan)
</ul>
<li>Project
<ul>
<li>Added as_criticalsection.h
<li>Moved as_c.cpp out of the main project, and into the C lib add-on project
</ul>
<li>Add-ons
<ul>
<li>Added CScriptBuilder with support for include directive and metadata through a pre-processing pass
<li>Improved const correctness to CScriptAny and CScriptDictionary
<li>Removed the 'as' prefix from CScriptString and CScriptFile
</ul>
</ul>
<h2>Version 2.14.1 - 2008/11/02</h2>
<ul>
<li>Bug fixes
<ul>
<li>Removed the need to inform @ when performing explicit ref cast with an implicit ref cast behaviour
<li>Added the namespace macros to the scriptnode module (Thanks SiCrane)
<li>Fixed an application crash in the asCThreadManager when the script engine was released by a global var upon application exit (Thanks BornToCode and SiCrane)
<li>Fixed application freeze on compiling scripts that declare a const return value for class methods (Thanks SiCrane)
<li>Fixed some assert failures after compilation errors (Thanks SiCrane)
</ul>
<li>Library
<ul>
<li>Added engine property asEP_ALLOW_IMPLICIT_HANDLE_TYPES to turn on the experimental feature.
<li>Added compiler warning when compiling handle comparison where either of the operands have not been explicitly set as handle.
<li>Updated as_config.h to support MSVC 2008 + x64 processor (native calling conventions is still not supported). (Thanks wildmild and SiCrane)
<li>Improved thread safety in the library.
<li>Added multithread support for MacOS X, x86 and ppc
</ul>
<li>Script language
<ul>
<li>Added experimental support for implicit handle types. These are declared with 'class@ name {}' (Thanks George Yohng)
<li>Class methods can now be declared as 'const' in the script class declaration.
<li>Implemented the 'is' operator for identity comparisons, i.e. comparing two object handles.
</ul>
<li>Project
<ul>
<li>Added as_gc.h and as_gc.cpp, which holds the garbage collector previously in the script engine module.
<li>Added as_atomic.h and as_atomic.cpp, which provides a threadsafe reference counter.
</ul>
</ul>
<h2>Version 2.14.0 - 2008/10/05</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed some issues with the scoped reference type (Thanks Jeff Slutter)
<li>Improved validation of type flags on RegisterObjectType with asOBJ_VALUE (Thanks dxj19831029)
<li>Fixed bug with for loop that was not using primitives in the loop increment statement (Thanks jal)
</ul>
<li>Library interface
<ul>
<li>The C interface now has a dedicated header file with it's own project in the add_on directory.
<li>Added WriteMessage to the engine interface, for writing to the message callback.
<li>Deprecated GetGlobalVarIDByIndex, GetGlobalVarIDByName, GetGlobalVarIDByDecl, and GetGlobalVarPointer.
<li>Added GetGlobalVarIndexByName, GetGlobalVarIndexByDecl, and GetAddressOfGlobalVar.
<li>The method GetAddressOfGlobalVar that replaces GetGlobalVarPointer now returns the address of objects directly, rather than a pointer to the address of the objects, for object variables.
<li>Added asBEHAVE_IMPLICIT_VALUE_CAST to differenciate between implicit and explicit value cast behaviours.
</ul>
<li>Library
<ul>
<li>Identical interfaces declared in different modules will now share type id.
<li>Added constraint against multiple threads trying to compile scripts at the same time.
<li>The script compiler no longer uses constructor/factory behaviours in implicit value casts.
<li>The engine's GetObjectTypeCount and GetObjectTypeByIndex now return application registered types as well.
<li>The context can be used to call registered functions/class methods directly.
</ul>
<li>Script language
<ul>
<li>The cast&lt;type&gt;(expr) operator can now only be used for reference casts. Value casts must use the construct cast, i.e. type(expr).
</ul>
</ul>
<h2>Version 2.13.1 - 2008/08/17</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed reference casts when the source handle is a script class member (Thanks Marcin "Pris" Musial)
<li>Fixed the declaration of the CRITICAL_SECTION on 64 bit Windows (Thanks Viktor Levitin)
<li>Fixed bug with temporary variables being reused too early (Thanks loboWu and Dentoid)
<li>Fixed bug with temporary variable not being released (Thanks dxj19831029)
<li>Fixed bug with enum lists not ended with comma (Thanks Shurwint)
<li>Fixed bug with compiler optimization of constant expressions (Thanks loboWu)
</ul>
<li>Script language
<ul>
<li>Single quoted strings can now be used instead of double quoted strings.
</ul>
<li>Library interface
<ul>
<li>Added asEP_USE_CHARACTER_LITERALS to allow applications to interpret single quoted strings as character literals.
<li>Added asEP_ALLOW_MULTILINE_STRINGS that will allow the compiler to accept string constants with line breaks.
<li>Added extra validation to register functions to minimize user errors.
<li>Added support for asBEHAVE_IMPLICIT_REF_CAST.
</ul>
<li>Library
<ul>
<li>Added support for posix threads on the platforms that support it (Thanks kunitoki)
<li>Support for multithreading is now turned on by default, it can be turned off by defining AS_NO_THREADS.
</ul>
</ul>
<h2>Version 2.13.0 - 2008/06/08</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed compile error on non-standards compliant compilers, e.g. MSVC6 (Thanks Shurwint)
<li>Updated as_config.h to remove compiler warning for stdcall on 64bit linux (Thanks Alraz)
<li>Moved enum declarations to top of header to fix compile error on GNUC (Thanks Samuel E. Henley)
<li>Global variables declared with enum types crashed the engine (Thanks mono2k)
<li>Fixed bug with shift operators and byte operands that should have been converted to dword (Thanks loboWu)
<li>Fixed compile error on GNUC/Linux. (Thanks droz)
<li>bool[] objects didn't use the correct element size on Mac OS X with PPC (Thanks Edward Rudd)
<li>Enum values are now correct on big endian CPUs as well.
<li>Illegal casts without arguments would crash the compiler (Thanks loboWu)
<li>Fixed a bug in compiler that could make the script engine release invalid objects (Thanks Milleniumas)
<li>Fixed a bug where global arrays of handles where initialized with handles of other global variables (Thanks sunwoolee)
</ul>
<li>Library interface
<ul>
<li>Added engine property asEP_MAX_STACK_SIZE
<li>Added methods for enumerating object type methods and properties to the asIObjectType interface
<li>Added methods for enumerating parameter types to the asIScriptFunction interface
<li>Added GetFunctionDescriptorById to the asIScriptEngine interface
<li>Added methods for getting function declaration and script section to asIScriptFunction
<li>Deprecated SetDefaultContextStackSize in asIScriptEngine
<li>Deprecated GetFunctionName, GetFunctionDeclaration, GetFunctionModule, GetFunctionSection in asIScriptEngine
<li>Deprecated GetMethodCount, GetMethodIDByIndex, GetMethodIDByName, GetMethodIDByDecl, GetMethodDescriptorByIndex in asIScriptEngine
<li>Deprecated global behaviours LOGICAL_OR and LOGICAL_AND as these operators are exclusive to boolean types
<li>Added global behaviour asBEHAVE_REF_CAST, that allow explicit casts between handles to application registered types
</ul>
<li>Library
<ul>
<li>Added initial support for native calling conventions on 64bit platforms (Thanks niteice)
<li>Updated as_config.h to add support for native calling conventions on FreeBSD (Thanks Jeremy "droz" Harmon)
</ul>
<li>Project
<ul>
<li>Added as_callfunc_x64_gcc.cpp
</ul>
</ul>
<h2>Version 2.12.0 - 2008/03/22</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed assert failure when compiling if statement with incorrect expression (Thanks Chet Simpson)
<li>Fixed assert failure when returning an input reference by reference from script function (Thanks Chet Simpson)
<li>Fixed potential heap corruption when internally copying system function information (Thanks Chet Simpson)
<li>Fixed asOBJ_VALUE | asOBJ_APP_FLOAT with RegisterObjectType (Thanks RsblsbShawn)
<li>Fixed access to global variables when the object method is from another module (Thanks Chet Simpson)
<li>A const object can now be passed to a function expecting a non-const object by making a copy (Thanks Jeff Slutter)
<li>Fixed a bug in tokenizer on 64 bit platforms (Thanks DaBono)
</ul>
<li>Script language
<ul>
<li>Added typedef. Currently it allows to define aliases of built-in primitive types (Thanks Chet Simpson)
<li>Added enum. (Thanks Chet Simpson)
</ul>
<li>Library interface
<ul>
<li>Added RegisterEnum and RegisterEnumValue to asIScriptEngine (Thanks Chet Simpson)
<li>Added RegisterTypedef to asIScriptEngine (Thanks Chet Simpson)
<li>Added GetObjectTypeId, GetArgCount, and GetReturnTypeId to asIScriptGeneric.
<li>Added the asIObjectType interface (Thanks Chet Simpson)
<li>AngelScript is now capable of differentiating between global functions, class methods, and functions using the generic calling convention.
<li>Added asWRONG_CALLING_CONV return code when the wrong calling convention is used.
<li>Changed constants to enums for better grouping.
<li>Added asIScriptFunction interface (Thanks Chet Simpson)
</ul>
</ul>
<h2>Version 2.11.2 - 2008/01/21</h2>
<ul>
<li>Bug fixes
<ul>
<li>Compiler didn't warn when using post incremental/decremental operator on uninitialized variable (Thanks Noelia Rodriguez Matilla)
<li>Switch cases didn't work properly for uint8 and uint16 types (Thanks Noelia Rodriguez Matilla)
<li>Compound assignments in conjunction with arrays could give incorrect results (Thanks loboWu)
</ul>
<li>Library interface
<ul>
<li>Added behaviour asBEHAVE_VALUE_CAST that allow objects to be cast to other types, including primitives
</ul>
<li>Library
<ul>
<li>ExecuteString no longer locks dynamic configuration groups. (Thanks mono2k)
<li>Compiler gives better error message when it cannot match class methods for a call (Thanks Jeremy Harmon)
</ul>
</ul>
<h2>Version 2.11.1 - 2007/12/16</h2>
<ul>
<li>Bug fixes
<ul>
<li>Expressions that tried to use indexing operator on primitive types caused assert failure (Thanks Anders Hansson)
<li>GetFunctionIDByDecl returned asINVALID_DECLARATION for functions that returned or passed reference types by value (Thanks loboWu)
<li>Corrected as_config.h in regards to vsnprintf for MSVC9 (Thanks Schrompf)
</ul>
<li>Library interface
<ul>
<li>Added the new object type flag asOBJ_SCOPED, that allows applications to
register reference types that behaves like value types but with special memory management needs
</ul>
<li>Library
<ul>
<li>Compiler emits less error messages that are concequences of previously detected errors
</ul>
</ul>
<h2>Version 2.11.0 - 2007/11/30</h2>
<ul>
<li>Bug fixes
<ul>
<li>Copying script classes that held object handles crashed (Thanks Jeff Slutter)
<li>Script class methods with the same name as an object type was incorrectly causing compilation error
<li>Compiler didn't find objects methods when compiling a method call if the method had the same name as an object type (Thanks Jeff Slutter)
<li>The bytecode optimizer failed in a specific situation (Thanks Jeff Slutter)
<li>The multithread support in as_thread.cpp was broken (Thanks Martin Kaeser)
<li>Garbage collector could in certain cases removed type definitions that were still needed causing application crashes (Thanks Jeff Slutter)
<li>Script classes inheriting from other classes didn't give a compiler error (Thanks Pris)
<li>The script allow called to non const methods for handles to const objects (Thanks virtualcodewarrior)
<li>Fixed a few null pointer accesses when passing null handles to and from application (Thanks behc)
<li>asIScriptContext::GetState can now return asEXECUTION_ABORTED as well (Thanks Anders Hansson)
<li>Fixed uint64 to double conversion
</ul>
<li>Library interface
<ul>
<li>Added new flags asOBJ_REF, asOBJ_VALUE, asOBJ_GC, asOBJ_POD, and asOBJ_NOHANDLE that represents how the type is intended to work in AngelScript
<li>Changed prefix for previous asOBJ flags to asOBJ_APP. They should only be used with asOBJ_VALUE.
<li>AngelScript now validates the behaviours, to check for missing behaviours or behaviours that shouldn't be registered for the type
<li>Types registered as reference counted won't be allowed to be passed by value to system functions, nor returned by value
<li>Reference types must now use the new FACTORY behaviour instead of the CONSTRUCT behaviour.
<li>Removed the asBEHAVE_ALLOC and asBEHAVE_FREE behaviours.
<li>Added Unprepare to context interface.
</ul>
<li>Library
<ul>
<li>Added native calling conventions for XBox 360 (Thanks Laszlo Perneky)
</ul>
</ul>
<h2>Version 2.10.0 - 2007/09/23</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a bug with matching functions with boolean arguments (Thanks Jeff Slutter)
<li>CopyScriptObject is now able to copy registered types that have no registered copy behaviour (Thanks Jeff Slutter)
<li>Script classes crashed on construction with AS_MAX_PORTABILITY (Thanks Carlos Campa&ntilde;a)
<li>Fixed a null pointer access on stack clean up (Thanks Thomas Cowell)
<li>Fixed an assert failure in the compiler (Thanks Jeff Slutter)
<li>When compiling assignment the compiler made incorrect implicit conversions to object type (Thanks Anders Hansson)
<li>Fixed access violation in RegisterGlobalProperty when the property had already been registered in another group (Thanks mono2k)
<li>The condition operator didn't handle void expressions in the results (Thanks Anders Hansson)
<li>Comparison with local boolean variable toggled the variable's value (Thanks Anders Hansson)
</ul>
<li>Script language
<ul>
<li>The any type is no longer a built-in type
<li>Bitwise operators will maintain the signed/unsigned type of the left operand (Thanks Trikko)
</ul>
<li>Library interface
<ul>
<li>Added GCEnumCallback and NotifyGarbageCollectorOfNewObject to engine
<li>Added behaviours GETREFCOUNT, SETGCFLAG, GETGCFLAG, ENUMREFS, RELEASEREFS
<li>The any type is no longer a built-in type, thus the asIScriptAny interface
and the asTYPEID_SCRIPTANY constant have been removed (CScriptAny add-on was created to replace them)
<li>Added CompareScriptObjects method to engine (Thanks Jeff Slutter)
</ul>
<li>Project
<ul>
<li>Removed as_gcobject.cpp and as_gcobject.h
<li>Removed as_anyobject.cpp and as_anyobject.h
</ul>
</ul>
<h2>Version 2.9.1 - 2007/08/19</h2>
<ul>
<li>Bug fixes
<ul>
<li>The default constructor wasn't called for script class members of script class types (Thanks Jeff Slutter)
<li>ReleaseScriptObject failed for types that didn't have the release behaviour, nor the destructor (Thanks Jeff Slutter)
</ul>
<li>Script language
<ul>
<li>Implemented support for destructors in the script classes. (Thanks Jeff Slutter)
</ul>
</ul>
<h2>Version 2.9.0 - 2007/08/12</h2>
<ul>
<li>Bug fixes
<ul>
<li>Parser could hang on scripts with non-terminated strings. (Thanks derefed)
<li>Compiler died when compiling a return statement with a void expression. (Thanks SiCrane)
<li>A bug when calling class methods with 1 or 2 byte arguments was fixed for PPC, both 32bit and 64bit. (Thanks Jeff Slutter)
<li>Fixed a bug with &amp;inout references and script class member variables (Thanks Jeff Slutter)
</ul>
<li>Library interface
<ul>
<li>GetGlobalVarPointer returns the pointer to the pointer to the object for object variables. Likewise for object handles a pointer to the object handle is returned (Thanks Jeff Slutter)
<li>Added GetArgByte(), GetArgWord(), SetReturnByte(), SetReturnWord() to asIScriptGeneric for better support on big endian processors
<li>Added SetArgByte(), SetArgWord(), GetReturnByte(), GetReturnWord() to asIScriptContext for better support on big endian processors
<li>GetArgDWord(), SetReturnDWord(), SetArgDWord(), and GetReturnDWord() now validates that type is 4 bytes
<li>Added GetThisTypeId and GetThisPointer to asIScriptContext (Thanks Jeff Slutter)
<li>GetTypeIdByDecl is now able to understand const type declarations. (Thanks Jeff Slutter)
<li>Added GetArgTypeId and GetFunctionId to the generic interface
<li>Removed the makeCopy parameter from AddScriptSection, and instead added a new engine property asEP_COPY_SCRIPT_SECTIONS
<li>Added CreateScriptObjectCopy, CopyScriptObject, AddRefScriptObject, ReleaseScriptObject, and GetSizeOfPrimitiveType to engine for easier development of generic container classes
<li>All methods for registering functions, methods, or behaviours are now returning the function id as a success indicator. Negative values still indicate an error.
<li>Implemented support for variable parameter type, ?&amp;, in object constructor, object methods, and global functions
</ul>
</ul>
<h2>Version 2.8.1 - 2007/07/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed the behaviour of the AS_USE_NAMESPACE macro (Thanks SkunkGuru)
<li>Fixed misleading message when compiling statement like 'Object &amp;ref' (Thanks Steve Williams)
<li>Fixed bug in compiler where it didn't reuse temporary variables properly
<li>Fixed problem with C++ compiler optimizations that changed the result of AngelScript code and thus breaking (Thanks Jeff Slutter)
<li>Fixed the as_config.h file for GNUC/Apple
<li>Fixed conversion of negative floating point values to unsigned int on GNUC based compilers
<li>Fixed bug with booleans returned from functions that didn't evaluate to false when expected. (Thanks Rakkar2)
<li>Fixed bug where the compiler failed when passing constant references as function parameters. (Thanks Rakkar2)
<li>Engine no longer permits the registration of functions with void parameters (Thanks Juan Pablo Bettini)
<li>Fixed compiler assert when assigning a void value to a variable (Thanks Anders Hansson)
<li>Fixed bug in compiler where the property name wasn't validated correctly for name conflicts (Thanks Andy R)
<li>Fixed intermittent bug in the byte code optimization that affected only big endian processors.
<li>Fixed incorrect name conflict between script class methods and global functions (Thanks Anders Hansson)
<li>Fixed assertion failure when declaring variables as void (Thanks Anders Hansson)
<li>Fixed bug with GetGlobalVarID that didn't return the id with the moduleId (Thanks Julian Storer)
<li>Fixed bug with initialization lists for arrays of object handles.
<li>Fixed bug with loading bytecode that used registered array types. (Thanks Juan Pablo Bettini)
<li>Fixed bug with loading bytecode with script classes that were declared out of order. (Thanks Juan Pablo Bettini)
<li>Fixed bug where CHKREF was placed incorrectly to verify only the first parameter on the stack. (Thanks CyberGorgolith)
<li>Fixed bug with boolean operations that treated false values as true due to trash data in upper bytes of the boolean variable.
<li>The default constructor for script classes wasn't called for classes in arrays. (Thanks Jeff Slutter)
<li>Fixed bug with explicit handle for class members and array elements (Thanks Juan Pablo Bettini)
</ul>
<li>Library
<ul>
<li>Improved memory foot print of the compiler.
<li>When parsing statements the parser now has full knowledge of available
types so it is able to better distinguish the true semantic of identifiers.
<li>Added support for PS3 native calling conventions. (Thanks Jeff Slutter)
<li>GNUC assembler for native calling conventions now guarantee stack pointer alignment on 16 bytes.
<li>Added support for Mac OS X with Intel native calling conventions.
<li>Added support for Mac OS X with PPC native calling conventions.
</ul>
<li>Library interface
<ul>
<li>Added OPTIMIZE_BYTECODE as engine property.
<li>Removed restriction on registered object type's sizes, they can now be of any size, even non-multiple of 4. (Thanks Tonin)
</ul>
<li>Virtual machine
<ul>
<li>New byte codes: ChkNullS, ClrHi
</ul>
<li>Project
<ul>
<li>Added as_callfunc_ppc_64.cpp
</ul>
</ul>
<h2>Version 2.8.0a - 2007/02/18</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed memory leak with exception handler inside script class method
<li>Fixed the DELETEARRAY macro that didn't work on gnuc (Thanks Jeremy "droz" Harmon)
</ul>
<li>Library
<ul>
<li>Improved the memory management facility
<li>Added the config option AS_NO_USER_ALLOC. Define this to turn off the user defined memory
managements. The default memory management in the library may not be compatible with all compilers yet. By
defining this macro when you compile the library, you should be able to use the library anyway, though
without the functionality of asSetGlobalMemoryFunctions().
</ul>
<li>Project
<ul>
<li>Removed as_objectarray.h
</ul>
</ul>
<h2>Version 2.8.0 - 2007/02/04</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed incorrect use of temporary variables during evaluation of function argument expressions (Thanks Gilad Novik)
<li>Fixed error with exception handler inside script class method (Thanks Anders "Dentoid" Stenberg)
</ul>
<li>Library interface
<ul>
<li>Added Set/GetEngineProperty() that will allow you to dynamically changes some settings that previously required a recompilation of the library.
<li>ALLOW_UNSAFE_REFERENCES is now an engine property instead of a compile time flag.
<li>Removed some deprecated functions.
<li>Added GetArgPointer() and GetReturnPointer() to asIScriptContext and asIScriptGeneric.
<li>Removed the SetCommonObjectMemoryFunctions() from the script engine.
<li>Added the global SetGlobalMemoryFunctions() and ResetGlobalMemoryFunctions().
<li>Added SetUserData() and GetUserData() to the context interface (Thanks Steve Williams)
</ul>
<li>Library
<ul>
<li>Fixed a lot of compiler warnings (Thanks Manu Evans)
<li>All dynamically allocated memory now uses the memory functions registered with SetGlobalMemoryFunctions.
<li>By changing the asCString implementation I was able to decrease the number of memory allocations by 15%.
</ul>
<li>Script language
<ul>
<li>Deprecated the bits type. All bitwise operators are now performed on the uint type. There is no longer any bitwise conversion of float to uint.
<li>Added the int64 and uint64 types.
<li>The this keyword is now optional when accessing class members from within a class method.
<li>Object constructors can now be used to perform implicit conversions in expressions.
</ul>
<li>Virtual machine
<ul>
<li>New byte codes:
i64TOi, uTOi64, iTOi64, fTOi64, dTOi64, fTOu64, dTOu64, i64TOf, u64TOf, i64TOd, u64TOd,
NEGi64, INCi64, DECi64, BNOT64,
ADDi64, SUBi64, MULi64, DIVi64, MODi64,
BAND64, BOR64, BXOR64, BSLL64, BSRL64, BSRA64
CMPi64, CMPu64
</ul>
<li>Project
<ul>
<li>Added as_memory.h, as_memory.cpp, and as_objectarray.h
</ul>
</ul>
<h2>Version 2.7.1b - 2006/12/03</h2>
<ul>
<li>Bug fixes
<ul>
<li>Save/load of bytecode followed by ExecuteString() that called one of the script functions failed during compilation. (Thanks coollofty)
</ul>
</ul>
<h2>Version 2.7.1a - 2006/11/04</h2>
<ul>
<li>Bug fixes
<ul>
<li>Constant bits8 and bits16 variables didn't work properly (Thanks Cheetah3d)
</ul>
</ul>
<h2>Version 2.7.1 - 2006/11/02</h2>
<ul>
<li>Bug fixes
<ul>
<li>Minor bug fix with an incorrect error message (Thanks Alraz)
<li>Empty switch statements would crash the compiler (Thanks the_bateman)
<li>Registering global properties didn't update a cache in compiled script modules, sometimes invalidating pointers (Thanks Anthony Rufrano, a.k.a "paradoxnj")
<li>Fixed compiler differences for 64bit integer constants
<li>Fixed some compiler asserts (Thanks Anders Hansson)
<li>The index operator on handles to array objects didn't work (Thanks Anders Hansson)
<li>The compiler would crash if a script class inherited from an undeclared type (Thanks Anders Hansson)
<li>The compiler incorrectly reused temporary variables (Thanks MrC_XBMC)
</ul>
<li>Library
<ul>
<li>The non-reserved tokens, any, from, and this, are now also defined in the as_tokendef.h file (Thanks Deyja)
<li>Adjustments have been made to make the library independent of CPU memory layout of words. This if for PPC. (Thanks Edward Rudd)
<li>Cleaned up as_config.h to make it easier to maintain
<li>Changed compiler to do proper conversion between types of different sizes, for the sake of big-endian CPUs.
</ul>
<li>Script language
<ul>
<li>Added the reserved keyword 'cast'
<li>Support for dynamic casts between object handles with cast&lt;type&gt;(expr)
</ul>
<li>Virtual machine
<ul>
<li>Added byte codes iTOb, iTOw, SetV1, and SetV2 to support big endian CPUs
<li>Added byte code Cast for dynamic casts of object handles
</ul>
</ul>
<h2>Version 2.7.0 - 2006/07/23</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a problem with script classes and multiple modules where the engine failed to find the class methods (Thanks Dentoid)
<li>Fixed bug where an assert fails when the operands for an assignment has compiler errors (Thanks Dentoid)
<li>Parser entered endless loop if the script ended before closing the class declaration (Thanks Dentoid)
<li>Parser entered endless loop if a method declaration had syntax error (Thanks kunitoki)
<li>Fixed assert hit for some compiler errors (Thanks kunitoki)
<li>Discard() would remove array types from the configuration, leading to failure in following builds (Thanks loboWu)
<li>Fixed bug with the any type and AS_MAX_PORTABILITY
<li>Fixed bug with AS_MAX_PORTABILITY and script classes that were not constructed properly
<li>Fixed a bug with the bytecode optimization for 64bit processors
<li>Fixed some bugs with the internal array object and AS_MAX_PORTABILITY and AS_64BIT_PTR
<li>Fixed bug with null value and AS_64BIT_PTR
<li>Fixed some bugs in the virtual machine on 64bit processors
<li>Added check to see if script property has a size 0 (Thanks Maddi)
</ul>
<li>Library interface
<ul>
<li>The engine methods GetMethodCount(), GetMethodIDByIndex(), GetMethodIDByName(), and GetMethodIDByDecl() were changed to take the typeId instead of the module name and object type name. This makes it unnecessary to know the module if you only have the type id, and it is also much more efficient.
<li>Added methods RegisterInterface() and RegisterInterfaceMethod() that allow the application to register a script interface which can be passed to the application
<li>Added method GetFunctionModule()
<li>Deprecated the methods GetModuleIndex() and GetModuleNameFromIndex()
<li>Added GetVarTypeId() to the context interface
<li>Replaced SetCommonMessageStream() with SetMessageCallback() which is more flexible in that it receives a structure with info instead of a string
<li>asIOutputStream is removed
<li>Added asGetLibraryOptions() which returns a string with the compile time options. Mostly used for testing.
</ul>
<li>Library
<ul>
<li>Applied changes to make the library work better with 64bit platforms (Thanks Yiannis Mandravellos)
<li>Fixed a couple of compiler warnings (Thanks Alraz)
<li>Added support for native calling conventions on MIPS processors. (Contribution by Manu Evans)
<li>Added first support for native calling conventions on PPC processors. (Contribution by Pecan Heber)
<li>Unified the way registered functions and script functions are stored in the engine
<li>Improved performance of Prepare() when using the same function as last Prepare()
</ul>
<li>Script language
<ul>
<li>Added new token 'interface'
<li>Semi-colon after class declaration is now optional
<li>It's now possible to declare interfaces in the scripts
<li>Added support for the '\t' escape sequence in strings. (Thanks Lbas)
<li>Deprecated the keyword 'struct' in the script language
</ul>
<li>Virtual machine
<ul>
<li>Added bytecode CALLINTF which resolves interface methods to the real class method
</ul>
<li>Project
<ul>
<li>Added as_callfunc_mips.cpp
<li>Added as_callfunc_ppc.cpp
</ul>
</ul>
<h2>Version 2.6.0 - 2006/04/08</h2>
<ul>
<li>Bug fixes
<ul>
<li>Fixed a bug with RegisterGlobalProperty() (Thanks loboWu)
<li>Type conversions may now be used in initialization of global variables. (Thanks iram)
</ul>
<li>Script language
<ul>
<li>It's now possible to define class methods and constructors for the script declared structures. The definition of the method must be written inside the struct declaration.
<li>The this keyword can be used to access the object and its members from within the class method. It's not yet possible to access the struct members without using the this keyword.
<li>Added the keyword 'class' as synonym for 'struct'
<li>For &amp;inout parameter references the 'inout' keyword is now optional
<li>Only object types that support object handles can now use the &amp;inout parameter references. Other types must use &amp;in or &amp;out, unless AS_ALLOW_UNSAFE_REFERENCES is defined.
<li>Added the reserved keyword: int64. Currently this is only used internally, but in time it will be a fully implemented primitive.
</ul>
<li>Library interface
<ul>
<li>Removed the deprecated version of the Build() method.
<li>Added SetArgAddress() and GetReturnAddress() methods to the context interface. These should be used to handle references
<li>Added GetArgAddress() and SetReturnAddress() methods to the generic interface.
<li>Changed AddScriptSection() to accept a size_t for the script length instead of int
<li>Improved the way the [Set|Get][Arg|Return][Address|Object]() methods work.
<li>Added the method SetObject() to the context for calling object methods
<li>ExecuteString() now adds a line break after the given string. This allows for one-line comments to be used without producing an invalid script. (Thanks B_old)
<li>Added the methods GetMethodCount(), GetMethodIDByIndex(), GetMethodIDByName(), and GetMethodIDByDecl() that should be used to obtain the function id for a script declared class method.
</ul>
<li>Library
<ul>
<li>Fixed a lot but not all of the compiler warnings that MSVC8 reports for 64bit incompatibilities.
<li>If native calling conventions are not supported for the target platform, then AS_MAX_PORTABILITY will automatically be defined to allow compilation of the library. (Thanks mandrav)
<li>Added a new compiler flag AS_64BIT_PTR, which should be defined for 64bit platforms. Ideally the as_config.h file should automatically set the flag according to the target platform. When this flag is defined, all pointers will be stored in the bytecode as 64bit words.
<li>Made improvements to better handle 64bit platforms
</ul>
</ul>
<h2>Version 2.5.0c - 2006/02/16</h2>
<ul>
<li>Bug fixes
<ul>
<li>Using named constants, i.e. variables declared and initialized with constants, would in certain situations give the wrong value. (Thanks Villemon)
<li>Added null checks to fix memory access failure related to dynamic configurations. (Thanks mandrav)
</ul>
<li>Project
<ul>
<li>Removed as_structs.h
</ul>
</ul>
<h2>Version 2.5.0b - 2006/01/31</h2>
<ul>
<li>Bug fixes
<ul>
<li>Comparison with object handle in a local variable produced incorrect byte code. (Thanks Villemon)
<li>A bug in the VM for the BC_ChkNullV byte code caused script exceptions when using asCScriptString compiled with VC++ 2005. (Thanks topcatse)
<li>When releasing the engine, the internal resources were released in the wrong order, causing assert failures in the memory manager with VC++ 2005.
<li>The assignment operator for the internal type 'any' wasn't properly registered, causing memory management problems.
<li>Global variables were not initialized properly when loading pre-compiled bytecode. (Thanks Villemon)
</ul>
</ul>
<h2>Version 2.5.0a - 2006/01/20</h2>
<ul>
<li>Bug fixes
<ul>
<li>Using assignment behaviours that took a reference as &amp;inout with asALLOW_UNSAFE_REFERENCES would crash the application. (Thanks Deyja)
<li>Using the default constructor for script structures to create temporary objects didn't work.
</ul>
</ul>
<h2>Version 2.5.0 - 2006/01/12</h2>
<ul>
<li>Bug fixes
<ul>
<li>asCALL_CDECL_OBJLAST that returned objects by value didn't work correctly (Thanks Deyja)
</ul>
<li>Script language
<ul>
<li>Primitive types can be implicitly converted to a reference of another primitive type for function calls. This is something C++ doesn't accept.
<li>Parameter reference specified as &amp;inout no longer copies the value. The argument is only computed once. The function receives a reference to the true value. Expressions where the reference cannot be guaranteed during the execution of the function generates a compiler error. The value must then be copied to a local variable instead.
<li>Added support for character literals.
</ul>
<li>Library interface
<ul>
<li>Overloaded operators may now use &amp;inout references. Since this type of references now guarantees a pointer to the true object this is useful if the operand has to be modified, e.g. a stream class.
<li>Overloaded operators may now use &amp;out references. The order of evaluation will change, but precedence order is kept.
<li>Added functions to the asIScriptContext interface that allow the application to enumerate variables on the stack and examine their values. (Thanks Ivan Marinov)
</ul>
<li>Library
<ul>
<li>A couple of minor code changes to make it easier to compile the library on Metrowerks CodeWarrior for NintendoDS (Thanks Fumihiro KanaYA)
<li>The script compiler was changed to generate less copies of objects when doing function parameters by reference.
<li>Added a new compile time flag: AS_ALLOW_UNSAFE_REFERENCES. When this is defined the library will allow parameter references without the in, out, or inout keywords. These parameters references will also work just like normal C++ parameter references, without any restrictions.
</ul>
<li>Virtual Machine
<ul>
<li>The VM has been changed to use three op instructions instead of stack based instructions. In some situations the new VM is faster, in others it is about the same.
</ul>
<li>Project
<ul>
<li>as_types.h was removed.
</ul>
</ul>
<h2>Version 2.4.1e - 2006/02/04</h2>
<ul>
<li>Bug fixes
<ul>
<li>When releasing the engine, the internal resources were released in the wrong order, causing assert failures in the memory manager with VC++ 2005.
<li>The assignment operator for the internal type 'any' wasn't properly registered, causing memory management problems.
<li>asCALL_CDECL_OBJLAST that returned objects by value didn't work correctly (Thanks Deyja)
<li>Global variables were not initialized properly when loading pre-compiled bytecode. (Thanks Villemon)
<li>Using the default constructor for script structures to create temporary objects didn't work.
<li>Comparison with boolean values resulted in the value -1 instead of 1.
</ul>
</ul>
<h2>Version 2.4.1d - 2005/12/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>The compiler didn't raise an error when doing an handle assignment where the lvalue was a normal object (Thanks Lbas)
</ul>
</ul>
<h2>Version 2.4.1c - 2005/11/22</h2>
<ul>
<li>Bug fixes
<ul>
<li>Overloaded indexing operators that take an object as parameter and returns a reference, crashed the application when compiling the script. (Thanks Desdemona)
</ul>
</ul>
<h2>Version 2.4.1b - 2005/11/08</h2>
<ul>
<li>Bug fixes
<ul>
<li>Chained expressions with overloaded operators and registered types could cause null pointer violations (continued) (Thanks __Avatar__)
</ul>
</ul>
<h2>Version 2.4.1a - 2005/10/18</h2>
<ul>
<li>Bug fixes
<ul>
<li>Registering global properties, after removing a config group with global properties, caused a null pointer violation. (Thanks DaesDemon)
<li>An assert failed when initializing variables with a function that took reference parameters. (Thanks mandrav)
<li>Chained expressions with overloaded operators and registered types could cause null pointer violations. (Thanks Anders Stenberg, a.k.a Dentoid)
<li>Expressions with multiple levels of indirections (.) and object handles as arguments in each level, caused incorrect bytecode. (Thanks Vexorian)
</ul>
</ul>
<h2>Version 2.4.1 - 2005/09/23</h2>
<ul>
<li>Script language
<ul>
<li>Added support for heredoc string constants. (Thanks Ashish Ranjan)
<li>Added support for array initialization lists.
</ul>
</ul>
<h2>Version 2.4.0 - 2005/09/15</h2>
<ul>
<li>Bug fixes
<ul>
<li>The bitwise negate operator, ~, now works with integer types as well, e.g. int and uint. (Thanks Suudy)
<li>Save and load of compiled bytecode with script arrays now work. (Thanks Evgeny Efremov, a.k.a wolfenstein)
</ul>
<li>Library interface
<ul>
<li>Added methods BeginConfigGroup(), EndConfigGroup(), and RemoveConfigGroup() for asIScriptEngine.
<li>The engine no longer allow overriding the array types if they are already being used elsewhere.
<li>All methods taking asUPtr as parameter was changed to take const asUPtr&amp; instead, which ought to help avoid ESP problems that some people have encountered.
<li>Added an optional namespace. Define the flag AS_USE_NAMESPACE when compiling to put the script engine in the namespace AngelScript.
<li>Added a method SetCommonObjectMemoryFunctions() that allow the application to register an alloc()/free() function pair that will be used for all script objects.
<li>asIBinaryStream was changed to use asUINT instead of int for the block size, and const void * instead of void * for Write().
<li>Added a method SetCommonMessageStream(). The engine uses this output stream to output error messages when registering configurations, and also if the Build() method is called with a null pointer for the output stream. A second version of this method is available that takes a simple function pointer and an optional parameter, like a normal callback function.
<li>Build() and ExecuteString() no longer takes a pointer to an asIOutputStream. The old version is still available by defining the flag AS_DEPRECATED.
<li>Added method SetConfigGroupModuleAccess() which is used to set both default module access mode and individual module accesses.
</ul>
<li>Script language
<ul>
<li>Constant variables that are initialized with a constant expression, can now be used as named constants in for example switch cases. (Thanks juhnu)
</ul>
<li>Library
<ul>
<li>Changed the way the modules free global variables. Instead of a script function, it is now just a simple loop freeing each of the variables.
<li>asBSTR is no longer used internally to store constant strings, asCString is used instead.
<li>Converted the asCMap to template code.
<li>The assembler VM was removed as it will no longer be possible to keep it compatible with the C++ VM.
</ul>
<li>Project
<ul>
<li>Added as_configgroup.cpp and as_configgroup.h.
<li>Removed as_map.cpp
<li>Removed as_context_x86.cpp
<li>Removed as_bstr_util.cpp and as_bstr_util.h.
</ul>
</ul>
<h2>Version 2.3.0b - 2005/08/09</h2>
<ul>
<li>Bug fixes
<ul>
<li>Parameters where freed before the returned reference was used, which caused errors if the reference pointed to one of the parameters. (Thanks Suudy)
</ul>
</ul>
<h2>Version 2.3.0a - 2005/07/29</h2>
<ul>
<li>Bug fixes
<ul>
<li>Structure definitions and function declarations where not order independent. (Thanks Carl <20>dahl)
<li>Added the old CreateContext() and GetGlobalVarPointer() as deprecated methods.
<li>Fixed some more compiler warnings.
</ul>
</ul>
<h2>Version 2.3.0 - 2005/07/14</h2>
<ul>
<li>Bug fixes
<ul>
<li>RegisterGlobalProperty() for object handles wasn't working correctly, the wrong address was used by the VM.
<li>The C interface for asIScriptGeneric wasn't declared correctly.
<li>Fixed a few compiler warnings. (Thanks Rain Dog)
<li>When calling methods on null handles, the application crashed with a memory access violation (Thanks Robert Manuszewski)
<li>If accessing the elements of a script array handle, the compiler wrongly made the elements handles as well (Thanks Scott Dillman, a.k.a AlphaDog)
</ul>
<li>Library interface
<ul>
<li>Added an interface to manipulate the any type, asIScriptAny.
<li>Added an interface to manipulate script structures, asIScriptStruct.
<li>Added an interface to manipulate script arrays, asIScriptArray.
<li>Added methods GetTypeIdByDecl() and GetTypeDeclaration().
<li>Added the method asIScriptEngine::CreateScriptObject() that allow the application to create objects from a type id.
<li>Added the method asIScriptEngine::GetObjectsInGarbageCollectorCount()
which can be used to finetune how often the GarbageCollect() is called.
<li>Changed the asIScriptEngine::CreateContext() to return the context pointer instead of placing it in the parameter.
<li>asIScriptEngine::GetGlobalVarPointer() now returns the pointer directly, instead of putting it in the argument.
<li>Removed the deprecated asIScriptContext::ExecuteStep().
</ul>
<li>Script language
<ul>
<li>New built-in type: any. This type will be able to hold any other type, as a generic container, though currently it can only hold object handles. It is possible to pass this type to the application.
</ul>
<li>Library
<ul>
<li>Changed the implementation for asCGCObject, since it is not possible to use multiple inheritance with anonymous pointers.
<li>Slimmed down the internal datatype representation, for the typeid feature.
</ul>
<li>Virtual machine
<ul>
<li>A new bytecode TYPEID has been implemented.
<li>The object types are now passed as pointers directly in the bytecode, instead of by index.
</ul>
<li>Project
<ul>
<li>Added as_anyobject.h and as_anyobject.cpp
</ul>
</ul>
<h2>Version 2.2.0 - 2005/06/08</h2>
<ul>
<li>Script language
<ul>
<li>New reserved keyword: struct
<li>The scripts can now declare and use structures.
<li>The compiler now automatically converts objects to object handles, when it is obvious a handle is wanted, i.e. there will be less need to use the @ operator.
</ul>
<li>Library interface
<ul>
<li>It is now possible to tell the library to automatically handle reference for handles passed to and from application functions. Simply add a + after the @. This makes it possible to pass handles to functions that do not call the release method before returning.
<li>A new method GarbageCollect() has been implemented that will free unused script objects. For long running programs it is necessary to call this every now and then. It can do either a full cycle or just a small incremental step, depending on the needs of the application.
</ul>
<li>Virtual machine
<ul>
<li>The bytecode now identifies object types locally to each module.
<li>There is a new bytecode OBJTYPE that translates a local object type id to the engine's object type id.
</ul>
<li>Library
<ul>
<li>Added a new preprocessor flag, AS_MAX_PORTABILITY, which removes all calls to assembler routines, which should make the library work on all platforms. In this mode, only asCALL_GENERIC can be used for application functions.
<li>Changed the internal data type description class to be easier to work with. The intention is to allow the application to access this to get information about types for global variables, function declarations, etc.
<li>Changed the implementation of the internal script array object to work more similar to the way script structures work.
</ul>
<li>Project
<ul>
<li>New files: as_scriptstruct.cpp and as_scriptstruct.h
<li>Added as_callfunc.cpp which implements the portable functions when AS_MAX_PORTABILITY is defined.
<li>Added the files as_gcobject.h and as_gcobject.cpp
</ul>
</ul>
<h2>Version 2.1.0c - 2005/05/26</h2>
<ul>
<li>Bug fixes
<ul>
<li>When getting the function declaration the library didn't set the 'in', 'out', 'inout' flags for parameter references (Thanks Andrey Kraynov, a.k.a _Dreamer)
<li>After loading precompiled bytecode script functions that took objects by handle couldn't be identified (Thanks Andrey Kraynov, a.k.a _Dreamer)
</ul>
</ul>
<h2>Version 2.1.0b - 2005/04/25</h2>
<ul>
<li>Bug fixes
<ul>
<li>The C interface wasn't exporting the functions. (Thanks Lars Peter Christiansen)
<li>Variables of types int and uint of any size weren't implicitly converted to bits.
<li>Uninitialized variables passed to &amp;out parameters were incorrectly reported as uninitialized.
<li>The compiler was accepting assignments of any type to objects with no registered assignment operator.
</ul>
</ul>
<h2>Version 2.1.0a - 2005/04/11</h2>
<ul>
<li>Bug fixes
<ul>
<li>The null pointer access in the compiler when matching function arguments was removed (Thanks Lennart Denninger)
<li>The ?: operator was reusing temporary variables incorrectly.
<li>The compiler failed to compile the boolean not operator for variables. (Thanks SharkBait)
</ul>
</ul>
<h2>Version 2.1.0 - 2005/04/03</h2>
<ul>
<li>Bug fixes
<ul>
<li>The line numbers reported by the VM were incorrect.
<li>GetGlobalVarPointer() was returning a pointer to a pointer for registered object types. (Thanks Rain Dog)
<li>Fixed a possible crash when calling AddScriptSection() with 0 for section name.
<li>The operands for overloaded operators are now evaluated left-to-right.
<li>Output parameters weren't working correctly for object methods (Thanks M<>rten Svanfeldt, a.k.a thebolt00)
<li>The engine failed when calling registered functions that received objects both by value and by reference (Thanks Lennart Denninger)
<li>Registered object types without registered constructor couldn't be used to create temporary objects in expressions.
<li>Global variables couldn't use overloaded assignment operators to initialize the variables.
<li>Object properties declared as object handles were not handled correctly by the compiler.
<li>Fixed a bug that crashed the application when compiling a function declared with a void parameter. (Thanks SharkBait)
<li>Sending complex objects by value to class methods caused a crash on GNUC based compilers. (Thanks Torsten, a.k.a torsten_pf)
<li>Passing objects by reference to constructors in declarations caused an assert failure. (Thanks Rain Dog)
</ul>
<li>Script language
<ul>
<li>The script language now allows statements like: func(expr), where the function doesn't take any arguments and
the expression evaluates to a void type. This is especially useful when using dynamically generating scripts where
the expression type isn't known before hand.
<li>Object variables and properties can be declared as const again
<li>Properties of a const object are automatically const as well
<li>When the object is const, the compiler doesn't allow non-const methods to be called
<li>It is possible to take a handle for a const object, but it can only be assigned to a handle to a const object
<li>The object held by a handle that is member of a const object, is not automatically const
<li>An object handle that is member of a const object is also const
<li>Const can be used for parameters again
</ul>
<li>Virtual machine
<ul>
<li>The calling convention used by the script engine now passes the object pointer as the first parameter instead of the last.
<li>GETOBJ was changed to read the offset from the stack instead of the address to the variable.
<li>Added GETOBJREF and GETREF to handle parameter references.
<li>Parameter references to overloaded operators are also protected by copying them to temporary variables.
<li>Added SWAP48 and SWAP84 to swap two values of different bytesizes.
<li>The compiler has been changed to output bytecode that don't keep unprotected pointers on the stack where they cannot be controlled. This will prove especially useful when I will later implement context serialization and co-routines.
<li>Calling the constructors with arguments are now also protected by not pushing the object pointer on the stack before the arguments.
</ul>
<li>Library interface
<ul>
<li>Implemented a C wrapper for the library. Compile the library with AS_C_INTERFACE to use it.
<li>Added a dummy array in asUPtr to make the size equal on all compilers (even when the C++ interface is disabled)
<li>Added SetLineCallback()/ClearLineCallback() to the context interface. These should be used instead of ExecuteStep() to control how much is executed each frame.
<li>Added SetExceptionCallback()/ClearExceptionCallback() to the context interface. These methods can be used for debugging purposes and allow the application to examine the callstack when an exception is raised.
<li>Added GetCallstackSize() and GetCallstackFunction() to the context interface.
<li>Added the possibility to turn off support for registering class methods. Compile the library with AS_NO_CLASS_METHODS. This can be used on compilers where class methods don't currently work.
<li>Added GetFunctionSection() to the engine interface.
<li>ExecuteStep() is now a deprecated method. Use the line callback method instead, which is much more flexible.
<li>Added GetCallstackLineNumber() to the context interface.
<li>All methods that return line numbers can now optionally return column number as well.
<li>Added the asCALL_GENERIC flag for functions using the generic calling convention.
<li>Added a new asIScriptGeneric interface for handling generic functions.
<li>Added GetObject() to the generic interface, that will return the object pointer when a method function using the generic calling convention is called.
<li>Added GetArgDWord(), GetArgQWord(), GetArgFloat(), GetArgDouble(), and GetArgObject() to the generic interface.
<li>Added SetReturnDWord(), SetReturnQWord(), SetReturnFloat(), SetReturnDouble(), and SetReturnObject() to the generic interface.
<li>Added two new behaviours asBEHAVE_ALLOC and asBEHAVE_FREE, that can be used to register custom memory allocation functions for an object type.
<li>Overloaded operators have been limited to only allow parameter references marked as 'in' (non-references are still allowed). This means that you cannot rely on that you receive a reference to the actual operand, as it might be a copy.
<li>The extra call to addref/release for the object pointer when calling class methods has been removed. The responsibility of making sure the pointer is valid during the call has been moved to the application.
<li>RegisterObjectType() now returns asALREADY_REGISTERED if name has already been registered as a type. (Suggestion by Adrian Licu)
<li>It is now possible to declare object methods as const, so that they can be called for constant objects. Ex: "void GetVal() const"
<li>Const overloading is now available for object behaviours and methods, i.e. if the object is const then the const version will be used, otherwise the non-const version will be used.
<li>AddScriptSection() now has an extra parameter that can be used to tell the library not to make a copy of the script code, and instead use the original pointer directly. (Thanks Adrian Licu)
<li>A new method ResetModule() was added to the engine. This can be used to reset the value of global variables for a module.
</ul>
<li>Project
<ul>
<li>Added as_generic.cpp and as_generic.h with the interface for generic functions.
<li>Removed the #include &lt;memory.h&gt; from the angelscript.h file.
<li>Added as_c.cpp with the C wrapper functions.
</ul>
</ul>
<h2>Version 2.0.0a - 2005/01/31</h2>
<ul>
<li>Bug fixes
<ul>
<li>GetCurrentFunction() and GetExceptionFunction() didn't return the function ID with the module index, affecting applications that were using module bindings (Thanks Tomas Stepanek)
<li>The library crashed when trying to register a function that used a handle to a type that had no addref/release behaviours registered (Thanks Adrian Licu)
<li>It wasn't possible to return null in a function which return type is a handle (Thanks Adrian Licu)
<li>Passing object handles by value to application functions could cause a crash (Thanks Adrian Licu)
<li>Fixed a minor memory leak when RegisterGlobalFunction() failed.
</ul>
</ul>
<h2>Version 2.0.0 - 2005/01/23</h2>
<ul>
<li>Bug fixes
<ul>
<li>GNUC: Classes with destructors can now be sent by value to system functions
<li>The compiler failed to successfully parse/compile temporary array constructors, e.g. int[](3).
<li>On GCC/Linux all classes/structs are returned in memory regardless of size, complexity, or calling convention. (Thanks Fredrik Ehnbom)
<li>Some compilers complained about the negative array size in the template code that is never instanciated. The code was commented.
<li>Overloaded assignment operators that take types other than the target can now be used in initializations. (Thanks Alan Kemp)
<li>asGetActiveContext() would cause an assert failure if called when no context was active. (Thanks Chee Chong Tay, a.k.a Iram)
<li>It was not possible to register arrays of registered types. (Thanks Tomas Stepanek)
</ul>
<li>Library interface
<ul>
<li>Removed deprecated functionality
<li>Removed the flag asOBJ_GUESS for RegisterObjectType().
<li>Removed the macros asFUNCTIONP() and asMETHODP().
<li>Removed GetReturnValue()
<li>Added GetReturnDWord(), GetReturnQWord(), GetReturnFloat(), GetReturnDouble(), and GetReturnObject()
<li>Removed SetArguments()
<li>Added SetArgDWord(), SetArgQWord(), SetArgFloat(), SetArgDouble(), SetArgObject()
<li>Protected destructors have been added to the interfaces so that the application doesn't call them by mistake (thanks Dan "Aggrav8d" Royer)
<li>Function declarations with arguments by ref must use the in, out, or inout flags
<li>Added the behaviours ADDREF and RELEASE that will be used by object handles to do memory management
<li>New context state: asEXECUTION_ERROR, that is set if one of the SetArg...() functions failed.
</ul>
<li>Script language
<ul>
<li>Removed the pointer type modifier
<li>Removed the -&gt; operator
<li>In declarations the array brackets are now part of the type, i.e. for "int[] a, b;" both a and b are arrays
<li>Arrays can now be resized by using the method resize().
<li>Parameter references are now protected by copying the value into a
temporary variable when calling the function, and then copying the
temporary variable back to the original location when the function
returns. The expression is computed twice for in/out references.
<li>Function parameters by reference should use the flags in, out, or inout to allow the compiler to optimize the use of the parameters.
<li>Added the object handle type modifier so that object handles can be declared. The token @ is used so as not to confuse it with C++ pointers or references.
<li>Added the null keyword for object handles.
<li>const is now only available for variable and property declarations, and only for primitive types. This change was made for consistency and because the script language was not able to guarantee that an object isn't changed by object methods.
<li>Arrays have been limited to only allow four dimensions
</ul>
<li>Virtual machine
<ul>
<li>Removed the bytecode ADDOFF
<li>Objects are stored in dynamically allocated memory. A pointer to the memory is stored on the stack
<li>Created ALLOC/FREE instructions for allocating and freeing the objects
<li>Objects are returned in a register
<li>Created LOADOBJ/STOREOBJ that moves an object pointer from a variable into the object register, and vice versa
<li>Created GETOBJ which moves an object pointer from a reference to the stack, overwriting the reference
<li>Removed END and PEID.
<li>Simplified the exception handler to free objects based only on their position on the stack
<li>A script function receives an object by value and by ref the same way. The difference is if the function is the owner of the object or not.
<li>Added REFCPY to support reference assignments for object handles
<li>Added CHKREF to validate object handles when used as normal objects
<li>Added the bytecodes RD1 and RD2 to fix alignment problems on CPUs that requires data to be aligned.
<li>The VM keeps a reference to the object when calling a method, to protect the object from being released before the method returns.
</ul>
<li>Library
<ul>
<li>The library was made to work with Dreamcast once more. (Thanks Fredrik Ehnbom)
<li>The compile time flag BUILD_WITH_LINE_CUES was replaced with BUILD_WITHOUT_LINE_CUES. This flag is not
defined by default making ExecuteStep() work as specified, but for those that do not use this function the
performance may be increased a little by specifying this flag when compiling the library.
</ul>
</ul>
</body>
</html>