Bit Syntax Problem

Edwin Zacharias <>
Tue Mar 25 07:39:00 CET 2003

I'm having a problem with the bit syntax in the
following function:

g() ->
  case <<0>> of
    <<0:1, _/binary>> -> true;
    _ -> false

This should return true, but it returns false when I
run it.  However when I run just the body of the
function in erl, it returns true.  Is there something
wrong with my function declaration?


Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

More information about the erlang-questions mailing list