Bug 21178 – It is not explained what is "unknown"

Status
NEW
Severity
minor
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-19T14:45:18Z
Last change time
2024-12-15T15:26:35Z
Keywords
pull
Assigned to
No Owner
Creator
Victor Porton
Moved to GitHub: dlang.org#4110 →

Comments

Comment #0 by porton — 2020-08-19T14:45:18Z
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.
Comment #1 by kinke — 2020-08-19T16:23:37Z
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);
Comment #2 by dlang-bot — 2023-02-01T18:56:41Z
@Mateiuss created dlang/dlang.org pull request #3512 "Fix Issue 21178" fixing this issue: - Fix Issue 21178 https://github.com/dlang/dlang.org/pull/3512
Comment #3 by robert.schadek — 2024-12-15T15:26:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4110 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB