www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12228] New: Compiler allows 'this' in BaseClassList

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12228

           Summary: Compiler allows 'this' in BaseClassList
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2014-02-22
13:56:51 PST ---
-----
class A
{
    static class B : this
    {
    }
}

void main()
{
}
-----

The above is expressible via ": typeof(this)", allowing " : this" doesn't make
too much sense to me.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 22 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12228


w0rp <devw0rp gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |devw0rp gmail.com


--- Comment #1 from w0rp <devw0rp gmail.com> 2014-02-22 14:10:42 PST ---
I thought of doing this now while writing my SMOKE generator which spits out D
source files. I'm not sure if this is bad to have in the language. If I can use
one or the other I'll be happy.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 22 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12228


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #2 from yebblies <yebblies gmail.com> 2014-02-23 14:07:01 EST ---
Likely because of issue 2540, which I think was probably a mistake.

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