Re: How do you get a hexstring from a base10 string -or- from a number?

2016-02-03 Thread Enjoys Math via Digitalmars-d-learn
On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote: I am making a method called: @property string debugIDString() { in { assert(super.toHash() == this.toHash()); } body { } body { // is currently: return to!string(this.toHash()); } and is returning a base10 string, so how

Re: How do you get a hexstring from a base10 string -or- from a number?

2016-02-03 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Feb 03, 2016 at 11:45:15PM +, Enjoys Math via Digitalmars-d-learn wrote: > On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote: > >I am making a method called: > > > >@property string debugIDString() { > >in { > > assert(super.toHash() == this.toHash()); > >} body { > >

Re: How do you get a hexstring from a base10 string -or- from a number?

2016-02-03 Thread anonymous via Digitalmars-d-learn
On 04.02.2016 00:45, Enjoys Math wrote: On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote: body { // is currently: return to!string(this.toHash()); } and is returning a base10 string, so how would I return a hex string so I can compare numbers displayed to the debugger

How do you get a hexstring from a base10 string -or- from a number?

2016-02-03 Thread Enjoys Math via Digitalmars-d-learn
I am making a method called: @property string debugIDString() { in { assert(super.toHash() == this.toHash()); } body { }

Re: How do you get a hexstring from a base10 string -or- from a number?

2016-02-03 Thread Enjoys Math via Digitalmars-d-learn
On Wednesday, 3 February 2016 at 23:45:15 UTC, Enjoys Math wrote: On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote: I am making a method called: @property string debugIDString() { in { assert(super.toHash() == this.toHash()); } body { } body { // is currently: return