[your code here] minimal hex viewer

Justin Whear mrjnewt at gmail.com
Thu Jan 4 03:58:44 UTC 2018


On Thursday, 4 January 2018 at 00:54:12 UTC, Seb wrote:
> On Thursday, 4 January 2018 at 00:35:56 UTC, H. S. Teoh wrote:
>> On Thu, Jan 04, 2018 at 12:25:59AM +0000, Justin Whear via 
>> Digitalmars-d wrote:
>>> // Reads bytes from stdin and writes a hexadecimal view like 
>>> a no-frills
>>> xxd.
>>> // All the actual formatting work is done by format's sweet 
>>> range syntax
>>
>> Mmm, I like this!  Care to submit a PR for this in the 
>> dlang.org repo?
>
> @Justin: Thanks a lot for your suggestion, but don't we already 
> have a "Print hex dump" example on dlang.org?

Looks like we do, I had not noticed it previously.  Naturally I 
prefer my implementation, ;)


More information about the Digitalmars-d mailing list