Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow access container whose key is string #965

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

Open
Domain wants to merge 1 commit into Tencent:master
base: master
Choose a base branch
Loading
from Domain:indexer

Conversation

Copy link
Contributor

@Domain Domain commented Feb 11, 2022

fix #707
我知道这个在FAQ里面有说明,但是有些时候直接访问还是方便很多,所以我加了一个Attribute,有这个Attribute的才生成访问函数

Copy link
Collaborator

这是规避lua的语法就没法区分obj.X和obj["X"]的问题的修改。
一个对象有个Print方法(字段也是类似),那obj.Print是要返回obj的Print方法,还是用字符串"Print"去索引呢?

Copy link
Contributor Author

Domain commented Feb 11, 2022

这是规避lua的语法就没法区分obj.X和obj["X"]的问题的修改。
一个对象有个Print方法(字段也是类似),那obj.Print是要返回obj的Print方法,还是用字符串"Print"去索引呢?

我知道,但是我只需要它作为一个容器用,这样很方便,所以要求加属性,表示你自己知道会有什么后果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

xlua访问用Dicitonary<string,string>拿不到值

AltStyle によって変換されたページ (->オリジナル) /