In Swift, we use both value and reference types, and while NSCoding supports classes, it doesn't work at all with structs or enums.
在 Swift 里,我们会用到值类型和引用类型虽然 NSCoding 支持 类(class)但它对结构(struct) 或者 枚举型(enum) 就无能为力了。
网站首页 情感咨询 情感美文 情感百科 情感生活 学习充电 旧版美文
| 词汇 | Enums |
| 分类 | 英语词汇 英语翻译词典 |
| 释义 |
Enums
原声例句
Apple 最新资讯 In Swift, we use both value and reference types, and while NSCoding supports classes, it doesn't work at all with structs or enums. 在 Swift 里,我们会用到值类型和引用类型虽然 NSCoding 支持 类(class)但它对结构(struct) 或者 枚举型(enum) 就无能为力了。
英语百科
Enumerated typeIn computer programming, an enumerated type (also called enumeration or enum, or factor in the R programming language, and a categorical variable in statistics) is a data type consisting of a set of named values called elements, members, enumeral, or enumerators of the type. The enumerator names are usually identifiers that behave as constants in the language. A variable that has been declared as having an enumerated type can be assigned any of the enumerators as a value. In other words, an enumerated type has values that are different from each other, and that can be compared and assigned, but which are not specified by the programmer as having any particular concrete representation in the computer's memory; compilers and interpreters can represent them arbitrarily. |
| 随便看 |
|
依恋情感网英汉例句词典收录3870147条英语例句词条,基本涵盖了全部常用英语单词的释义及例句,是英语学习的有利工具。