[erlang-questions] String versus variable in binary literal

Michel Rijnders g.a.c.rijnders@REDACTED
Wed May 16 10:49:48 CEST 2012


Hi,

Confused newbie here. Can someone please explain the following:

1> <<"foo">>.
<<"foo">>
2> Foo = "foo".
"foo"
3> <<Foo>>.
** exception error: bad argument

What's the error in the last case?

Best,
Michel
-- 
My other car is a cdr.



More information about the erlang-questions mailing list