單就1.24a的更新內容所造成的部份效應, 有部份發生bug造成crash的狀況
個人的看法是, 與其說是WEer應該注意其發生, 不如說是改版過程的測試不夠嚴謹
或是樣本數不足(搞不好只有dota當樣本)
也就是我認為這些應該是內部的錯誤處理應該做的事, 而不是作者要去考慮
目前應該包括
1. hashtable的不正常移除
2. 部份程式碼會被編輯器判斷為使用return bug, 但實際上沒有
3. 承2, return bug仍可利用同樣的方法繼續使用
在新改版中, 如果沒有猜錯的話
1.24b開始應該就不會再有某些刁鑽的寫法來避免crash
當然實際上仍需要等正式開放才能確定
有人不懂所以多解釋一點我的觀點
所謂的內部的錯誤處理該做的事,拿發文來說
假設現在ptt發文的文章最後如果沒加一個--就會當機
那只要所有的使用者在發文時最後加一個--就可以避免
但我認為應該是系統要自動偵測,並在沒--時自動加上,或是直接迴避這種設定
例子可能不太符合,但單就內部的錯誤處理該做的事而言應該是個易懂的例子
以下原文
We've released Patch 1.24b on PTR (Westfall) for testing, before the actual
public live.
--------------------------------------------------------------------------
Patch 1.24b
--------------------------------------------------------------------------
PC WORLD EDITOR CHANGES
- Increased max map file size from 4 MB to 8 MB.
- Added the ability to store hashtable handles in a hashtable.
- Added GetSpellTargetX and GetSpellTargetY natives.
- Added a new base handle type “Agent” of which many types now extend from.
- Added a SaveAgentHandle native which can be used for saving most handle
types.
- Added a JASS optimization dealing with global variable change events.
FIXES
- Fixed a few false positives caused by the "return bug" fix.
- Fixed a crash related to hashtable reference counting.
- “Shadowing” global variables with local variables no longer is possible.
- Fixed a type conversion dealing with operators (i.e. adding a handle with
an integer).
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.130.175.172
推
08/21 12:33, , 1F
08/21 12:33, 1F
推
08/21 12:49, , 2F
08/21 12:49, 2F
→
08/21 12:52, , 3F
08/21 12:52, 3F
→
08/21 12:53, , 4F
08/21 12:53, 4F
→
08/21 12:53, , 5F
08/21 12:53, 5F
→
08/21 12:54, , 6F
08/21 12:54, 6F
※ 編輯: gyd 來自: 140.130.175.172 (08/21 13:14)
→
08/22 00:25, , 7F
08/22 00:25, 7F
推
08/22 20:49, , 8F
08/22 20:49, 8F
推
08/26 11:01, , 9F
08/26 11:01, 9F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):
正規
4
9