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


Jesse Phillips <jesse.k.phillip...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jesse.k.phillip...@gmail.co
                   |                            |m


--- Comment #2 from Jesse Phillips <jesse.k.phillip...@gmail.com> 2011-11-08 
07:16:04 PST ---
Can I then say you aren't able to define opAssign for a struct and have it work
for associative arrays:

    void main() {
       S[string] ss;
       S s;

       ss["hello"] = s;
    }

    struct S {
       void opAssign(int i) {
       }
       void opAssign(S s) {
           this = s;
       }
    }

/tmp$ ./test
Segmentation fault

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

Reply via email to