-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
discussionFurther discussion is requestedFurther discussion is requestedpriority:p3Low priorityLow priorityscope:compilertype:featureNew feature or requestNew feature or request
Description
It's a common pattern to calculate the size of a hex..end block in runtime. It can be needed if you need to know the size of block to copy it entirely somewhere, or know when it ends when iterating.
Because hex..end is static, its size can be pre-calculated by the compiler as a const value.
E.g.
:buf
hex
00(16)
end
const bufSize = sizeof(@buf) // 16
Proposed syntax is just for illustrative purposes and may change.
MiranDMC and Dante-1337
Metadata
Metadata
Assignees
Labels
discussionFurther discussion is requestedFurther discussion is requestedpriority:p3Low priorityLow priorityscope:compilertype:featureNew feature or requestNew feature or request