mirror of
https://github.com/horizon-rust/horizon-mixins.git
synced 2026-12-03 19:34:02 +07:00
[GH-ISSUE #19] BEFORE_CALL rejects function-local use declarations and calls in closure-containing expressions #4
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-mixins#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sofia-gros on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon-mixins/issues/19
I would like to extend an existing texture-preparation queue before the host consumes it, without duplicating its atlas allocation logic.
I reproduced two planning restrictions using horizon-mixins revision
a2af5c0dd4.The minimal test uses BEFORE_CALL with selector values.iter, ordinal = 0, require = 1, an empty helper function and no bindings.
Results:
The selected call is values.iter, outside the closure body, although it belongs to the same expression. These are planner results; I am not claiming that a successful plan proves the transformed program is correct.
Could BEFORE_CALL support these cases when scope, evaluation order, borrowing and temporary lifetimes can be preserved? If this restriction is intentional, is there a supported way to add requests to a local queue before it is consumed?
The real target is Game::prepare_trims in Horizon revision b6c936f82b08798057161bdfa577e3aac53fb91e. The minimal tests above isolate the local-use and closure-expression cases from that function.
I am requesting safe support or guidance on an alternative, not removal of validation. I have not established that every alternative injection path is unavailable.