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

[foundation] instruction parameter naming and access #107

Open
toth-istvan-zoltan opened this issue Feb 13, 2025 · 0 comments
Open

[foundation] instruction parameter naming and access #107

toth-istvan-zoltan opened this issue Feb 13, 2025 · 0 comments
Assignees

Comments

@toth-istvan-zoltan
Copy link
Contributor

Currently the instructions() function can be used to access instructions inside the fragment:

@Adaptive
fun a(hover : Boolean, instructions : AdaptiveInstructionGroup, @Adaptive b : () -> Unit) {
    if (hover) {
        box(instructions()) {
            b()
        }
    }
}

However, this is inconvenient as the parameter name is also instructions and import of the function cannot be done easily because of this.

@toth-istvan-zoltan toth-istvan-zoltan self-assigned this Feb 13, 2025
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

1 participant