Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow access container whose key is string #965

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Domain
Copy link
Contributor

@Domain Domain commented Feb 11, 2022

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

@chexiongsheng
Copy link
Collaborator

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

@Domain
Copy link
Contributor Author

Domain commented Feb 11, 2022

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

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

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

Successfully merging this pull request may close these issues.

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