什么是Swift数据类型的“L”代表? [英] What Does a Swift Data Type of "L" Stand For?

查看:143
本文介绍了什么是Swift数据类型的“L”代表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

prepareForSegue()函数中,我声明了一个常量作为ViewController类型。当我访问这个常量,一个值类型与字符L出现在它旁边。我理解M代表方法,C代表类,V代表变量,但这个L代表什么?

Within a prepareForSegue() function, I declared a constant as a ViewController type. When I access this constant, a value type with the character "L" appears next to it. I understand "M" stands for Method, "C" for class, and "V" stands variable, but what does this "L" stand for?

Aside:不知道T

Aside: Not sure what "T" stands for either.

推荐答案

这是本地变量的符号。

您可以在操场中看到差异:

You can see the differences in a playground:

仅基于文件名,其他符号为:

Based on filenames alone, the other symbols are:

B - 绑定

T - 内置类型,typedef

c - 类别

C - 类或类模板

C E - 类扩展

M - 方法,方法模板,实例方法,成员

V - 类变量,全局变量,实例变量

K - const,枚举常量

E - 枚举

F - 字段

ƒ - 功能,函数模板

A - IBAction方法

O - IBOutlet,IBOutletCollection

- 宏

C (棕色) - 建模类

M (棕色) - 建模方法

P (棕色) - 建模属性

N - 命名空间

x - 参数

P - 属性

Pr - 协议

S - struct

U - union

B — binding
T — builtin type, typedef
— category
C — class, or class template
CE — class extension
M — method, method template, instance method, member
V — class variable, global variable, instance variable
K — const, enum constant
E — enum
F — field
ƒ — function, function template
A — IBAction method
O — IBOutlet, IBOutletCollection
# — macro
C (brown) — modeled class
M (brown) — modeled method
P (brown) — modeled property
N — namespace
x — parameter
P — property
Pr — protocol
S — struct
U — union

这篇关于什么是Swift数据类型的“L”代表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆