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. |
随便看 |
|
英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。