Type Encodings
為了協(xié)助(assist)runtime system聚蝶,編譯器(compiler)會(huì)把每種方法的返回值(the return)和參數(shù)類型(argument types)編碼為字符串耸弄。這個(gè)編碼方案也可以用于其他上下文(context),所以可以公開(kāi)地(publicly)使用@encode()編譯器指令。返回值和參數(shù)類型可以是int,pinter,structure羞延,union等基礎(chǔ)數(shù)據(jù)類型,也可以是類名脾还。
下表列出了the type codes.
| code | Meaning |
| : | : |
| c | A char |
| i | A int |
| s | A shot |
| ... | ... |
| ... | ... |