[Issue 693] 'this' can't be used as an alias parameter for a mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 12 02:01:37 PDT 2011


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


Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras at gmail.com


--- Comment #2 from Simen Kjaeraas <simen.kjaras at gmail.com> 2011-04-12 01:57:39 PDT ---
This also a problem for non-mixin templates:

struct MyCallable {
    int opCall( int n ) {
        return n;
    }

    auto mapthis( int[] arr ) {
        return map!this( arr );
    }
}

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