July 05, 2002 Re: Newbies Question, and Humble Suggestions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Syd Barrett | "Syd Barrett" <sydbarrett74%REMOVE%THIS%@hotmail.com> wrote in message news:afralu$rkt$1@digitaldaemon.com... > > "Mick_K" <Mick_K_member@pathlink.com> wrote in message news:afqa38$373$1@digitaldaemon.com... > > * 256 bit ints - Add them to the language. (or even better, allow a way > of > > defining any sized int, eg int_256, int_512 etc.) I see no reason not > too, > I think that we should add this as a supplemental class (like Java does with > the BigInteger class). Hmm, than will be stuck with: BigInteger a = new Biginteger("2345897623523457892348976"), b = new Biginteger("2345897623523457892348976"), c = a.add(b).mul(b); instead of Biginteger a = "2345897623523457892348976", b = "2345897623523457892348976", c = (a + b) * b; Now which do you like better? It would also solve the problem, if D was extended to support such syntax for classes. Yours, Sandor |
Copyright © 1999-2021 by the D Language Foundation