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

Remove stack option from @call #13907

Merged
merged 3 commits into from
Dec 13, 2022
Merged

Remove stack option from @call #13907

merged 3 commits into from
Dec 13, 2022

Conversation

Vexu
Copy link
Member

@Vexu Vexu commented Dec 12, 2022

I suggested removing the stack field from CallOptions since we don't have a concept of partially comptime structs so having the modifier be comptime and allowing runtime values for stack doesn't work well. Andrew suggested to instead combine @call and @asyncCall so that is what this PR does.

After a brief discussion it was decided that @asyncCall needs to be a separate builtin and that async_kw Modifier should be removed instead.

@Vexu Vexu force-pushed the call-merge branch 3 times, most recently from 2f72cad to a169b90 Compare December 12, 2022 22:46
@Vexu Vexu changed the title Merge @call and @asyncCall Remove stack option from @call Dec 12, 2022
@Vexu Vexu force-pushed the call-merge branch 2 times, most recently from 9812142 to 709a2d6 Compare December 13, 2022 01:11
@andrewrk andrewrk enabled auto-merge December 13, 2022 21:13
@andrewrk andrewrk merged commit 6378644 into ziglang:master Dec 13, 2022
@Vexu Vexu deleted the call-merge branch December 14, 2022 10:21
krichprollsch added a commit to lightpanda-io/zig-js-runtime that referenced this pull request Sep 13, 2023
@originalmk
Copy link

originalmk commented Aug 20, 2024

Hi! Is there a way to call function inside a naked function in an elegant way (preferably without using assembly) after removal of stack option from @call?

I am trying to do bare bones (kernel) in Zig and apparently this feature was still present in Zig 0.12 - version used in the tutorial, but not in Zig 0.13.0, which I currently have.

@nektro
Copy link
Contributor

nektro commented Aug 20, 2024

Hi! please reserve more question-oriented issues for one of the wonderful Communitys, we'd be happy to help you over there :D

@jiacai2050
Copy link
Contributor

@originalmk Please see my comments here

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

Successfully merging this pull request may close these issues.

5 participants