Tail Recursion & ActionScript 3.0

2009-05-19
貌似AS3.0还未支持尾遞歸,如果執行尾遞歸函數的話,可能會得到如下的堆棧溢出異常:
Error #1023: Stack overflow occurred

包括在使用Alchemy時的C/C++函數裡如果有遞歸的話也可能會出現堆棧溢出,鬱悶~~唯有改改算法或者等AS4.0吧,聽說4.0會支持尾遞歸~~

M-OSCAR | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com