Avatar
Swift における関数ポインタ書き換える swizzling をひっそりと目指してたんですが、これ constant によってメモリの書き込み禁止フラグとか立てられちゃうときついっすね…
12:11 PM
A variable may be defined as a global constant, which indicates that the contents of the variable will never be modified (enabling better optimization, allowing the global data to be placed in the read-only section of an executable, etc). Note that variables that need runtime initialization cannot be marked constant as there is a store to the variable.