-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
@min
and @max
should allow any number of arguments and notice integer bounds
#14039
Labels
accepted
This proposal is planned.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Comments
andrewrk
added
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
accepted
This proposal is planned.
labels
Dec 22, 2022
will there be other variadic functions or a way to define variadic functions (of comptime-known length, unlike in C)? |
No. Language builtins are special. |
There are archs with instructions for 3-way min, so this is a good call 👍
I guess there could be other builtins, but i can think of none where this applies |
|
mlugg
added a commit
to mlugg/zig
that referenced
this issue
Apr 30, 2023
mlugg
added a commit
to mlugg/zig
that referenced
this issue
May 1, 2023
mlugg
added a commit
to mlugg/zig
that referenced
this issue
May 1, 2023
mlugg
added a commit
to mlugg/zig
that referenced
this issue
May 1, 2023
mlugg
added a commit
to mlugg/zig
that referenced
this issue
May 1, 2023
mlugg
added a commit
to mlugg/zig
that referenced
this issue
May 1, 2023
mlugg
added a commit
to mlugg/zig
that referenced
this issue
May 1, 2023
andrewrk
pushed a commit
to mlugg/zig
that referenced
this issue
May 2, 2023
andrewrk
pushed a commit
that referenced
this issue
May 2, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
accepted
This proposal is planned.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
This test is expected to pass. Note that there should be no compile error due to coercion to
u16
despite the use of runtime-knownu64
andusize
, because one of the arguments to@min
is compile-time known to be within range ofu16
.The text was updated successfully, but these errors were encountered: