Bit Syntax Problem

Edwin Zacharias ehz4@REDACTED
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
  end.

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?

-Edwin



__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com



More information about the erlang-questions mailing list