You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://dlang.org/spec/enum.html
"An empty enum body (For example enum E;) signifies an opaque enum - the enum members are unknown."
The specification is very unclear here:
What this "unknown" does mean? How does "unknown" differ from "none" in this context?
The specification does not define the meaning of unknown. Formal specifications should not use a word with no clear meaning.
The text was updated successfully, but these errors were encountered:
That's very subjective - I find it crystal-clear, especially with the 'opaque' hint - it's just like an opaque `struct S;` declaration. Sometimes, a full declaration isn't needed, e.g.:
extern(C++):
enum E : int;
void foo(E);
Victor Porton (@vporton) reported this on 2020-08-19T14:45:18Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=21178
CC List
Description
https://dlang.org/spec/enum.html "An empty enum body (For example enum E;) signifies an opaque enum - the enum members are unknown." The specification is very unclear here: What this "unknown" does mean? How does "unknown" differ from "none" in this context? The specification does not define the meaning of unknown. Formal specifications should not use a word with no clear meaning.The text was updated successfully, but these errors were encountered: