[erlang-questions] binary_comprehension support

Matthew O'Gorman mogorman@REDACTED
Tue May 29 08:19:16 CEST 2007

Hi i was toying around with binary comprehension support but I cant
get a simple test of it to work for example
-compile([export_all, binary_comprehension]).

foo(Bin) -> [ X || <<X:8>> <- Bin].

wont work no matter what type of binary i put in,  I have r11b4 and
binary_comprehension turned on in my compile flag but i get the
following error.

(mog@REDACTED)9> test:foo(<<1:8, 2:8>>).

=ERROR REPORT==== 29-May-2007::01:17:49 ===
Error in process <0.91.0> on node 'mog@REDACTED' with exit value:

** exited: {function_clause,[{test,'-foo/1-lc$^0/1-0-',[<<1,2>>]},
                             {shell,eval_loop,3}]} **

anyone have experience with this new feature?


More information about the erlang-questions mailing list