www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20786] New: do attribute inference for all nested functions


          Issue ID: 20786
           Summary: do attribute inference for all nested functions
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: schveiguy yahoo.com

All nested functions have available source for the compiler, so there is no
reason not to infer attributes.

This already happens inside  safe functions, it makes no sense for it not to
happen for all nested functions.

Note the post from Walter here:
https://forum.dlang.org/post/r75q88$182b$1 digitalmars.com

Also, this is related to issue 13567, but it's slightly different, and there is
better precedent.

Apr 28 2020