[Issue 7013] Mutable interface for BigInts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 9 09:57:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7013
--- Comment #2 from bearophile_hugs at eml.cc 2013-07-09 09:57:35 PDT ---
(In reply to comment #1)
> In latest git HEAD, the following works:
>
> import std.bigint;
> void main() {
> BigInt x = 123;
> BigInt y = 321;
> x += y;
> assert(x == 444);
> }
>
> Not sure what's happening under the hood, though. Is it making internal
> allocations?
That code works, but it's not about what this enhancement request is about.
When you perform x+=y; the data inside x probably doesn't change.
--
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