[zeromq-dev] [PATCH] runtime type-checking
Jon Dyte
jon at totient.co.uk
Sat Apr 9 10:59:15 CEST 2011
Martin Sustrik wrote:
> ------------------------------------------------------------------------
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Hi Martin
This looks like a good idea, though I wonder if the tags shouldnt be
something less widely used than 0xdeadbeef and 0xbadcafe0?
eg you could encode ascii '0' 'M' 'Q' + 1 other char into the 32bit int,
something more on 64 bit.
and with care around endianess it would read ok in the debugger say for
example, if you ever crashed you were scanning an area of memory looking
for clues....
Essentially I'm saying can the 'signature' on the objects be a bit more
unique.....
Jon
More information about the zeromq-dev
mailing list