digitalmars.D.bugs - [Issue 10534] New: Addition and subtraction of delegates allowed
- d-bugmail puremagic.com (27/27) Jul 03 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10534
- d-bugmail puremagic.com (10/10) Jul 03 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10534
- d-bugmail puremagic.com (11/11) Jul 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10534
- d-bugmail puremagic.com (10/10) Jul 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10534
http://d.puremagic.com/issues/show_bug.cgi?id=10534 Summary: Addition and subtraction of delegates allowed Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: callumenator gmail.com DMD 2.063 void main() { int delegate() a = ()=>5; int delegate() b = ()=>5; auto c1 = a+b; // passes (and will crash if c1() called) auto c2 = a-b; // passes (and will crash if c2() called) auto c3 = a/b; // a & b not of arithmetic type auto c4 = a*b; // a & b not of arithmetic type } DMD properly rejects all arithmetic if delegates are typed as int function()'s. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 03 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10534 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/2294 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 03 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10534 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1fb7a33b2ca338628450428ba67d302616126b02 fix Issue 10534 - Addition and subtraction of delegates allowed https://github.com/D-Programming-Language/dmd/commit/d9c710351028452533241e069bdde9034fc4cde8 Issue 10534 - Addition and subtraction of delegates allowed -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 05 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10534 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 05 2013