20 Star 127 Fork 25

木兰编程语言 / mulan-rework

 / 详情

实例函数调用println的两种声明方法,调用结果不同

Done
Task owner
Opened this issue  
2023-02-22 07:59

原始可执行文件测试:

> type C { { a = println } }
> C().a('o')
<__main__.C object at 0x000000000319E0C8> o
> type C1 { {} func a(t) {println(t)} }
> C1().a('o')
o

重现项目测试结果类似。

为何会有 <__main__.C object at 0x000000000319E0C8> 这段?

请将调查小结在文档 功能/已知问题.md

Comments (1)

吴烜 created任务

调查完毕,原因已清楚,目标达成。

吴烜 changed issue state from 待办的 to 已完成
吴烜 added
 
悬赏
label

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(1)
384016 zhishi 1578922186
Python
1
https://gitee.com/MulanRevive/mulan-rework.git
git@gitee.com:MulanRevive/mulan-rework.git
MulanRevive
mulan-rework
mulan-rework

Search

344bd9b3 5694891 D2dac590 5694891