ByteArray>>printHexString has quotes?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ByteArray>>printHexString has quotes?

RT Happe-2
Why does the method ByteArray>>printHexString include quotes in the returned
string? This is not the case with printString. It should leave out the
quotes.

The method comment is wrong also?

Regards

R-T Happe


Reply | Threaded
Open this post in threaded view
|

Re: ByteArray>>printHexString has quotes?

Blair McGlashan
"RT Happe" <[hidden email]> wrote in message
news:c7flgu$auq$00$[hidden email]...
> Why does the method ByteArray>>printHexString include quotes in the
returned
> string? This is not the case with printString. It should leave out the
> quotes.

Yes, I think you are probably right - it was (I think) designed that way to
make its original use more convenient, but it isn't consistent with
expectation. It would be a breaking change to patch it though, so I think a
new method will be needed.

The workaround is to use the #printHexOn: method.

>
> The method comment is wrong also?

Yes, that can be corrected.

Thanks

Blair