三个关键字 __auto_Type 、__kindof 、id 使用
id : 类型 不多说,基础。不过缺点如下:
1.编译的时候不检查真实类型
2.返回值,没有提示,太随意
__kindof : 类或者它子类, 在父类 之前写
__auto_type 类似解释地址文章: Type Inference with __auto_type
三个关键字 __auto_Type 、__kindof 、id 使用
id : 类型 不多说,基础。不过缺点如下:
1.编译的时候不检查真实类型
2.返回值,没有提示,太随意
__kindof : 类或者它子类, 在父类 之前写
__auto_type 类似解释地址文章: Type Inference with __auto_type
本文标题:__auto_Type 、__kindof 、id
本文链接:https://www.haomeiwen.com/subject/rwphqctx.html
网友评论