Postfix Self Expression
2024-09-07 12:37:58
Postfix Self Expression
A postfix self
expression consists of an expression or the name of a type, immediately followed by .self
. It has the following forms:
expression.self
type.self
The first form evaluates to the value of the expression. For example, x.self
evaluates to x
.
The second form evaluates to the value of the type. Use this form to access a type as a value. For example, because SomeClass.self
evaluates to the SomeClass
type itself, you can pass it to a function or method that accepts a type-level argument.
GRAMMAR OF A SELF EXPRESSION
postfix-self-expression → postfix-expression.
self
https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Expressions.html#//apple_ref/swift/grammar/postfix-self-expression
最新文章
- VS2013无法启动 IIS Express Web解决办法
- message from server: ";Host 'XXX' is not allowed to connect to this MySQL server
- [DFNews] EnCase 更新至 v7.10
- FPGA基本原理之一
- winform 属性
- Hadoop虽然强大,但不是万能的(CSDN)
- ExtJS-Viewport背景图片铺满浏览器视图并自动伸缩
- Sql2008 全文索引应用(错误7625)
- Number of Islands
- Eclipse Kepler中配置JadClipse
- WPF学习01:初始XAML浅析
- C语言的ANSI/ISO标准
- 全局唯一ID的生成方式
- ll 命令不好用了,ls 命令没有颜色了怎么办
- curl转让query string逃生参数
- HDU 1243 畅通project 并査集
- js中的全局函数
- nginx学习笔记——http module分析
- jmeter JDBC请求连接测试mysql数据库
- 搭建自己的docker仓库
热门文章
- 【VIP视频网站项目一】搭建视频网站的前台页面(导航栏+轮播图+电影列表+底部友情链接)
- vue.js层叠轮播
- Linux—Ubuntu14.0.5安装gitlab
- 一键安装LNMP(适合centos7)
- SBC37x交叉编译平台QT+OPENCV
- 0709MySQL 数据库性能优化之表结构优化
- magento 的一些Sql查询
- 洛谷 P1692 部落卫队
- Kafka的存储机制以及可靠性
- Python - 字符串模板的安全替换(safe_substitute) 具体解释