Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 15, 2011 [Issue 6003] New: BigInt length and conversion properties problems | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6003 Summary: BigInt length and conversion properties problems Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: paul.d.anderson@comcast.net --- Comment #0 from Paul D. Anderson <paul.d.anderson@comcast.net> 2011-05-14 17:36:06 PDT --- When I try to compile this code: import std.bigint; void main() { BigInt big = BigInt(123456); int size = big.uintLength(); int value = big.toInt(); } I get the following errors: TestToInt.d(5): Error: no property 'uintLength' for type 'BigInt' TestToInt.d(5): Error: function expected before (), not __error of type int TestToInt.d(6): Error: no property 'toInt' for type 'BigInt' TestToInt.d(6): Error: function expected before (), not __error of type int -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 15, 2011 [Issue 6003] BigInt length and conversion properties problems | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul D. Anderson | http://d.puremagic.com/issues/show_bug.cgi?id=6003 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm@gmail.com --- Comment #1 from kennytm@gmail.com 2011-05-14 23:49:51 PDT --- Not reproducible. BTW, '.toInt()' currently returns a 'long'. Shouldn't it be an 'int'? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 17, 2011 [Issue 6003] BigInt length and conversion properties problems | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul D. Anderson | http://d.puremagic.com/issues/show_bug.cgi?id=6003 --- Comment #2 from Paul D. Anderson <paul.d.anderson@comcast.net> 2011-05-16 22:02:46 PDT --- Sorry. I was using an old version of the compiler. When I updated the compiler the file compiled as expected. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 17, 2011 [Issue 6003] BigInt length and conversion properties problems | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul D. Anderson | http://d.puremagic.com/issues/show_bug.cgi?id=6003 Paul D. Anderson <paul.d.anderson@comcast.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation