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

fix jsonutils with generic sandwiches, don't use strformat #24560

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Dec 23, 2024

fixes #24559

The strformat macros have the problem that they don't capture symbols, so don't use them in the generic fromJson proc here. Also fromJson refers to jsonTo before it is declared which doesn't capture it, so it's now forward declared.

@Araq Araq merged commit 5c71fba into nim-lang:devel Dec 23, 2024
18 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 5c71fba

Hint: mm: orc; opt: speed; options: -d:release
178143 lines; 9.684s; 653.859MiB peakmem

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.

Bogus attempting to call undeclared routine (related to std/jsonutils).
2 participants