www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 136] New: Struct hidden context pointers

Date: Sat, 14 Jun 2014 13:18:52 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=136

            Bug ID: 136
           Summary: Struct hidden context pointers
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ibuclaw gdcproject.org

Keeping a record of this:

http://forum.dlang.org/thread/20130706211329.GA17171 quickfur.ath.cx

---
// Function to test if T is independently instantiable.
void f(T)() {
    T t;
}

void main() {
    int a = 42;
    struct S {
        int y;
        bool f() { return (a == 42); }
    }

    f!S();
}
---

-- 
You are receiving this mail because:
You are watching all bug changes.
Jun 14 2014