String representation in erlang

Claes Wikstom klacke@REDACTED
Tue Sep 13 16:58:33 CEST 2005

Per Gustafsson wrote:
> Hi
> I think that there is a simpler solution to this problem:
> packstring(String) ->
>    list_to_binary(String).
> unpackstring(Binary) ->
>    binary_to_list(Binary).

Quite a few replies here ...

Anyway, now all we need is:

10> io:format("~p~n", [<<"abcde">>]).

(aswell as nice record printouts ofcource)

But to be serious, (hijacking the thread!!!)
I never checked in the patches I sent the other day to
the io_lib/shell code

Two problems, both shitty in my NSHO,

a) remote printing is broken
b) multiple records with the same name don't work
    well (or at all). (b) is wore than (a) since there's
    a lot of code with #state{.... declarations .. i.e pretty
    much all gen_servers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: klacke.vcf
Type: text/x-vcard
Size: 301 bytes
Desc: not available
URL: <>

More information about the erlang-questions mailing list