function values as comptime params
This commit is contained in:
@@ -878,7 +878,7 @@
|
||||
- equal structural values reuse specializations and stable emitted names, distinct values
|
||||
specialize separately, aggregate inference uses exact type-factory provenance, and all
|
||||
comptime parameters remain erased from the runtime ABI
|
||||
- undefined values, pointers, functions, general slices, fallibles, ranges, and untagged
|
||||
- undefined values, pointers, general slices, fallibles, ranges, and untagged
|
||||
unions diagnose that they have no stable comptime identity
|
||||
- `@std/meta.TypeInfo.enum` carries declaration-ordered `EnumInfo.fields`, enabling enum
|
||||
formatting through `field!` without runtime reflection metadata
|
||||
@@ -913,6 +913,14 @@
|
||||
- native unsigned scalars and target-classified unsigned C scalars satisfy the constraint
|
||||
- `isize` and `usize` remain concrete pointer-sized types
|
||||
|
||||
43. comptime function parameters (implemented)
|
||||
- concrete native and C function values, function literals, and aggregates containing them
|
||||
specialize by declaration identity rather than runtime address
|
||||
- repeated declarations reuse specializations, distinct declarations specialize separately, and
|
||||
function-valued parameters remain erased from the runtime ABI
|
||||
- statically known callback invocations lower to direct calls; runtime-selected function pointers
|
||||
remain indirect, and bodyless C declarations remain runtime-only during comptime execution
|
||||
|
||||
## A word on unchecked casts
|
||||
|
||||
For casts that bypass safety checks, Honey provides builtin functions:
|
||||
|
||||
Reference in New Issue
Block a user