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

最新文章

  1. VS2013无法启动 IIS Express Web解决办法
  2. message from server: "Host 'XXX' is not allowed to connect to this MySQL server
  3. [DFNews] EnCase 更新至 v7.10
  4. FPGA基本原理之一
  5. winform 属性
  6. Hadoop虽然强大,但不是万能的(CSDN)
  7. ExtJS-Viewport背景图片铺满浏览器视图并自动伸缩
  8. Sql2008 全文索引应用(错误7625)
  9. Number of Islands
  10. Eclipse Kepler中配置JadClipse
  11. WPF学习01:初始XAML浅析
  12. C语言的ANSI/ISO标准
  13. 全局唯一ID的生成方式
  14. ll 命令不好用了,ls 命令没有颜色了怎么办
  15. curl转让query string逃生参数
  16. HDU 1243 畅通project 并査集
  17. js中的全局函数
  18. nginx学习笔记——http module分析
  19. jmeter JDBC请求连接测试mysql数据库
  20. 搭建自己的docker仓库

热门文章

  1. 【VIP视频网站项目一】搭建视频网站的前台页面(导航栏+轮播图+电影列表+底部友情链接)
  2. vue.js层叠轮播
  3. Linux—Ubuntu14.0.5安装gitlab
  4. 一键安装LNMP(适合centos7)
  5. SBC37x交叉编译平台QT+OPENCV
  6. 0709MySQL 数据库性能优化之表结构优化
  7. magento 的一些Sql查询
  8. 洛谷 P1692 部落卫队
  9. Kafka的存储机制以及可靠性
  10. Python - 字符串模板的安全替换(safe_substitute) 具体解释