feat(text): Text.to_float; a void function's return <value> is an error
Text.to_float reads a leading decimal number (strtod), the twin of Text.to_int, for data files. A return with a value in a function that returns nothing now says so where it is, instead of reaching clang as 'store void'. Seed regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f5ab5cf88a
commit
c57eafcacc
8 changed files with 38133 additions and 37958 deletions
5
changes/text-to-float.md
Normal file
5
changes/text-to-float.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
bump: minor
|
||||
type: feat
|
||||
**`Text.to_float(s)`** - a leading decimal number read from a string as a `float` (`strtod`
|
||||
underneath), the twin of `Text.to_int`. A game's data files carry fractions - an effect's
|
||||
strength, a model's reach - and there was no way to read one back.
|
||||
5
changes/void-return-error.md
Normal file
5
changes/void-return-error.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
bump: patch
|
||||
type: fix
|
||||
**`return <value>` in a function that returns nothing is an error.** It used to reach clang as
|
||||
`store void`, which fails the link with an LLVM message about void types and no line in the
|
||||
program; it now says where, in words.
|
||||
Loading…
Add table
Add a link
Reference in a new issue