Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we would handle wrapping in `raku-invoke`. This included the situation where a `proto` was wrapped. This resulted in: * Wrong semantics: if we did a `callwith` in the wrapper, we failed to honor its change of arguments from the original ones given to the `proto`, which in turn meant that they weren't accounted for in the dispatch. (This showed up in the DateTime::Timezones module.) * Inconsistency: a proto that would ordinarily have its invocation elided would be invoked if the proto was wrapped * A slight slowdown, for the same reason Now we handle it at the point we call a routine. This simplifies things a bit in `raku-invoke-wrapped` too, because it no longer has to try and pick a correct dispatcher to delegate to, but can always use the same one for both the wrappers and the original routine.
- Loading branch information
Showing
1 changed file
with
43 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters