[Issue 7616] New: aggregates don't inherit pure nothrow from outer scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 29 23:02:14 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7616

           Summary: aggregates don't inherit pure nothrow from outer scope
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de


--- Comment #0 from dawg at dawgfoto.de 2012-02-29 23:02:12 PST ---
@safe:             // works
pure nothrow:      // doesn't work

struct Foo1
{
    void bar() {}
}

struct Foo2
{
pure nothrow:      // redundant
    void bar() {}
}

pragma(msg, typeof(Foo1.bar));
pragma(msg, typeof(Foo2.bar));

@property doesn't work either.
--------

I liked Don's idea of an attribute stack in the parser
to get rid of these inconsistencies.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list