[Issue 2157] [GSoC] mixin struct, function overload

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 17 17:05:12 PST 2011


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


pompei2 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pompei2 at gmail.com


--- Comment #2 from pompei2 at gmail.com 2011-12-17 17:05:10 PST ---
This is still an issue in dmd 2.057, tested with the following code:


    mixin template EagerSingleton()
    {
        private this()
        {
            instance = this;
        }

        private static typeof(this) instance;
    }

    class NetworkPacketQueue
    {
        mixin EagerSingleton;

        public this(string bla)
        {
            this();
        }
    }

    void main()
    {
        new NetworkPacketQueue("Hey");
    }

-- 
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