[Issue 10276] Nested structs get a context pointer even if they don't need one

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 27 16:40:10 PDT 2016


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

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance

--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
I'm marking this as a performance issue. It should in theory be simple to
implement this in the compiler:

1. Check if the struct definition compiles
2. Check if a `static` version of it compiles
3. If 2 fails make the struct nested

--


More information about the Digitalmars-d-bugs mailing list