Skip to content

Conversation

@lwaern-intel
Copy link
Contributor

No description provided.

@lwaern-intel lwaern-intel force-pushed the lw/explicit-object-decls branch from bcd632e to aa03516 Compare November 26, 2025 13:10
# extension status:
# None -> dual extension and decl
# True -> extension
# False -> explicit decl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ternary rep is pretty damn ugly. @mandolaerik does this deserve the use of enum (which'd be a fresh DMLC dependency?) Or is there a third approach perhaps I haven't thought of?

fmt = ("object '%s' not declared elsewhere."
" To declare and define a new object, omit 'in'.")

class EMULTIOBJDECL(DMLError):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I struggled a bit with naming of these error tags, but ultimately it doesn't matter much.

@syssimics
Copy link
Contributor

PR Verification: ✅ success

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.

2 participants