Hmm... not sure that #asByteArray makes sense without specifying encoding rules such as little-vs-big-endian, signed-vs-unsigned, max-num-bytes, etc ... hmm....

Best,
Marcel

Am 01.11.2023 04:33:31 schrieb Tim Rowledge <tim@rowledge.org>:

An interesting thought. Kinda suggests we should get rid of the usages like #putOn:

> On 2023-10-31, at 7:43 PM, lewis@mail.msen.com wrote:
>
> It does not generally make sense for a number, or any other kind of object, to know how to represent itself as a byte array.

I see your point about the range of plausible options.

tim
--
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: NOP: Randomize the PSW and then branch