ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
字段访问通过点操作符来表示,点号后跟字段的名称。 > Field access is expressed by using the dot . followed by the name of the field. ~~~ object.fieldName ~~~ 这个语法同样用于访问包中的类型,形式为 pack.Type 。 > This syntax is also used to access types within packages in the form of pack.Type. 类型检查器确保一个被访问的字段实际上存在,并可以应用根据字段的性质进行转换。如果一个字段访问是模糊的,理解解析顺序(第3.7.3)可以提供帮助。 > The typer ensures that an accessed field actually exist and may apply transformations depending on the nature of the field. If a field access is ambiguous, understanding the resolution order (3.7.3) may help.