Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类的名称、字段名称、异常、异常中的字符串是否可用r<n>;引用? #14

Open
crlf0710 opened this issue Jul 14, 2019 · 3 comments

Comments

@crlf0710
Copy link

规范中没有写明,望澄清。

@andot
Copy link
Member

andot commented Sep 11, 2019

类名和异常不能作为引用,也不参与引用计数。关于类有单独的计数。
字段名称和异常中的字符串都是普通字符串格式,是进行引用计数的,所以可以使用 r<n>; 引用。但为了处理高效,通常在强类型语言中实现时,字段名称只参与引用计数,而不使用 r<n>; 这种表示形式,方便缓存。

@crlf0710
Copy link
Author

建议加入spec文本。

@andot
Copy link
Member

andot commented Sep 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants