[V2.0.10:] Wish minParam of a bind func could show the fact

Propose new features and changes
User avatar
V2User
Posts: 195
Joined: 30 Apr 2021, 04:04

[V2.0.10:] Wish minParam of a bind func could show the fact

Post by V2User » 22 Oct 2023, 20:47

image.png
image.png (43.53 KiB) Viewed 889 times
In the above picture, minParams of the bind function should have return 1, while currently any bind func will return 0.
In fact, arguments passed to a func in total can never be more or less, if the code of the func is written for a specific paramCount. However, parameters of bind funcs act like variadic paras but in fact it's not. It is against the fact.
Therefore, I wish properties of a bind function could show the fact more exactly.


[Mod action: Moved topic from “AutoHotkey Development” which is for more broad discussions about the future of the AutoHotkey language. Most of your”Wish” posts should be posted here.]
User avatar
V2User
Posts: 195
Joined: 30 Apr 2021, 04:04

Re: [V2.0.10:] Wish minParam of a bind func could show the fact

Post by V2User » 27 Oct 2023, 00:33

If don't apply this wish, callbackCreate(Func.bind(ths)) will work wrongly on paraCount.
Post Reply

Return to “Wish List”