[Issue 14014] struct init required for zero initialized static arrays

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jan 20 06:27:33 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14014

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
In addition to this, we should probably not generate ModuleInfo when it's not
needed.

The reason this came about is because a module that is basically import-only
was not included in druntime. But you could not compile code that used the
included struct.

The rationale of avoiding including it in druntime build was to avoid adding
unnecessary ModuleInfo bloat. It would be nice if you could include it and the
bloat wasn't added if the compiler detected it didn't need it.

--


More information about the Digitalmars-d-bugs mailing list