Skip to content

Conversation

@nitely
Copy link
Contributor

@nitely nitely commented Dec 31, 2025

Fix #59

This fix is pretty limited though. A better fix would evaluate the values. For this 1. need to stop using desc to look up the sub-command, 2. don't store the desc for sub-commands, 3. get the desc at runtime (similar to applySetter; but get instead of set). Alternatively, maybe just populate desc field at runtime.

In Nim 1.6 genEnumCaseStmt errors out. It could be fixed by generating an enum case of elements instead of values; it currently sets the enum by value desc if present (which is a bit iffy).

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.

Usage of & in the description of the command enum values gives compile error

1 participant