www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7616] New: aggregates don't inherit pure nothrow from outer scope

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: dawg dawgfoto.de



 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: -------
Feb 29 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7616


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear mailmetrash.com



PDT ---
What do you mean by "doesn't work ?"
This code compiles on 2.059, but I'm not sure what you wanted to test.

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