-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
remove deprecated type pragma syntax, fix bugs that required it #20199
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
Conversation
Sorry that this messes with the style here, but it would be nice to have this syntax removed given how long it's been deprecated (nim-lang/Nim#20199).
3044a92 to
5a85d6b
Compare
|
PR changed to keep the syntax but remove it across the repo and change warning to say "legacy syntax" instead of deprecated. |
|
Please rebase. |
db19bdd to
bb85c25
Compare
|
Done |
|
Will change later to remove the syntax and make |
closes nim-lang#4651, closes nim-lang#16653 with a cheap fix for now due to how early `tfFinal` is set
fbb9a08 to
5416917
Compare
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
The syntax is now removed with CI hacks to make certain packages work. (working around mratsim/weave#182 for weave, and fixes in sdl2 and variant not being in tagged versions) |
|
Thanks for your hard work on this PR! Hint: mm: orc; threads: on; opt: speed; options: -d:release |
* correct grammar; ref #20199 * add check for keeping grammar.txt up-to-date * add nimTestGrammar
…lang#20199) * remove deprecated pragma syntax from 0.20.0 closes nim-lang#4651, closes nim-lang#16653 with a cheap fix for now due to how early `tfFinal` is set * remove type pragma between name and generics * undo removal, try removing bind expression (0.8.14) * fix test, unremove bind expr * remove again * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * dependencies @ HEAD & weave test dependencies * try fix package ci Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
…im-lang#20494) * correct grammar; ref nim-lang#20199 * add check for keeping grammar.txt up-to-date * add nimTestGrammar
closes #4651, closes #16653 with a cheap fix for now due to how early
tfFinalis setRemoves
type Foo = object {.final.}/type Foo {.final.} [T] = objectsyntax, remove uses of the syntax in this repo.Packages which still use this syntax:
sdl2(fixed in untagged release 2.0.4)yaml(merged Change deprecated type pragma syntax flyx/NimYAML#118)variant(merged change deprecated type pragma position yglukhov/variant#9)Note: Also tested removing bind expression syntax deprecated since 0.8.14 and no code was affected. Searching for nnkBind on github also gives zero user code results, so macros don't use this syntax either.