digitalmars.D.bugs - [Issue 8837] New: BigInt/boolean error message
- d-bugmail puremagic.com (32/32) Oct 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8837
- d-bugmail puremagic.com (17/17) Feb 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8837
- d-bugmail puremagic.com (11/11) Feb 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8837
- d-bugmail puremagic.com (9/9) Feb 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=8837
http://d.puremagic.com/issues/show_bug.cgi?id=8837 Summary: BigInt/boolean error message Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc import std.bigint: BigInt; void main() { auto r1 = BigInt(10) / true; auto r2 = BigInt(10) /= true; } DMD 2.061alpha gives: ...\dmd2\src\phobos\std\bigint.d(135): Error: operation not allowed on bool 'y' ...\dmd2\src\phobos\std\bigint.d(258): Error: template instance std.bigint.BigInt.opOpAssign!("/",bool) error instantiating test.d(3): instantiated from here: opBinary!("/",bool) test.d(3): Error: template instance std.bigint.BigInt.opBinary!("/",bool) error instantiating If this operation is not allowed, then maybe it's better to disallow it statically (maybe with a template constraint), to give a nicer/more clean error message. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 17 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8837 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|diagnostic |pull CC| |andrej.mitrovich gmail.com Platform|x86 |All AssignedTo|nobody puremagic.com |andrej.mitrovich gmail.com Summary|BigInt/boolean error |BigInt needs better |message |operator template | |constraints OS/Version|Windows |All 13:08:07 PST --- https://github.com/D-Programming-Language/phobos/pull/1112 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8837 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/7c616db71a5f7b1568a46a0044dcb636b2bc7ee6 Fixes Issue 8837 - BigInt needs better operator constraints. https://github.com/D-Programming-Language/phobos/commit/295ff3b64d9e58d347ff898402e066e39f9174ea Issue 8837 - BigInt needs better operator constraints. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8837 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2013