-added _newslot metamethod in classes
-added enums added constants
-added sq_pushconsttable, sq_setconsttable
-added default param
-added octal literals
-fixed debug hook, 'calls' and 'returns' are properly notified in the
same number.
-fixed a coroutine bug
특이한 추가사항은 metamethod 입니다. C++의 operator overloading과 같이 오퍼레이터를 오버로드 할수 있습니다. 그리고 클래스 선언시 각각의 멤버 선언을 위해 호출되는 메타메소드(2.1부터)가 있으며, 상속, typeof, tostring등 많은 것들이 추가되었습니다.
또 default param이 추가되었는데 아래와 같이 사용가능합니다.
Code: Select all
function test(a,b,c = 10, d = 20)
{
}
http://sourceforge.net/project/showfile ... _id=577260