[erlang-questions] pid to integer and back
Bob Ippolito
bob@REDACTED
Wed Oct 8 18:45:52 CEST 2008
It's probably a bad idea (though I guess not much worse than any other
serialization of pids) but you could use pid_to_list and list_to_pid.
If you want a more compact representation you could parse it.
On Wed, Oct 8, 2008 at 12:13 PM, Joel Reymont <joelr1@REDACTED> wrote:
> Paul,
>
> That's quite rich at 27 bytes. I would prefer 12 (4x3).
>
> Thanks, Joel
>
> On Oct 8, 2008, at 5:08 PM, Paul Fisher wrote:
>
>> Does it really need to be an integer? Can you do a fixed size
>> binary (e.g. term_to_binary(pid()))?
>
> --
> wagerlabs.com
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list