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

addFunctionOfClassMethod 注册自定义函数后续有支持函数重载的计划吗 #361

Closed
manmao opened this issue Nov 28, 2024 · 4 comments

Comments

@manmao
Copy link

manmao commented Nov 28, 2024

addFunctionOfClassMethod 注册自定义函数后续有支持函数重载的计划吗?目前历史业务很多函数重载的用法,发现兼容性问题.

@DQinYuan
Copy link
Collaborator

能举几个例子吗?

@manmao
Copy link
Author

manmao commented Jan 21, 2025

能举几个例子吗?

比如 class A 有两个一模一样的 static 方法 methodA(参数1) 和 methodA(参数1,参数2),这两个方法注册到QLExpress 是否可以做到重载,目前实现是 只保留一个

@taokan
Copy link
Contributor

taokan commented Feb 13, 2025

现阶段是覆盖的逻辑,只按照函数名称进行注册,等我们讨论下

@DQinYuan
Copy link
Collaborator

注册成两个不同的方法。或者更高级的函数定义方法,内部判断参数进行分发。

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

3 participants