Bring back the previous behavior of call_guest_function_by_name#761
Bring back the previous behavior of call_guest_function_by_name#761jprendes merged 4 commits intohyperlight-dev:mainfrom
call_guest_function_by_name#761Conversation
ee49c52 to
d99d24b
Compare
fc3eb8c to
4026423
Compare
ludfjig
left a comment
There was a problem hiding this comment.
LGTM. I guess we decided we don't care about the Callable trait?
It looks like we need to provide a way for this to choose the behavior, or we need to break it/keep current behavior |
c8f4d66 to
02338d4
Compare
No, I renamed the method from |
|
Let me update the PR description |
How is the name conflict with Do you mind squashing the |
If the trait is not on scope, there's no conflict. |
5ea43c3 to
04f8b3d
Compare
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
This PR brings back the previous behaviour of
call_guest_function_by_name, and exposes the new behavioud behind a different name:runcall.Originally I wanted to call the new behaviourcall, but that method exists as an alias tocall_guest_function_by_namethroughtCallabletrait.The risk of using thecallname is that anyone using theCallabletrait would get an (almost) silent change in behaviour (almost because there would be a lint aboutCallablebeing unused).Decided that there's no big risk of anyone using the
Callabletrait directly other than through the WIT macros, so usingcallshould be fine.Let me know if anyone prefers a different name.