[erlang-questions] [ANN] efene 0.5 - two languages for the erlang VM - released
Mariano Guerra
luismarianoguerra@REDACTED
Sun May 2 21:36:37 CEST 2010
On Sun, May 2, 2010 at 5:57 AM, Henning Diedrich <hd2010@REDACTED> wrote:
> Did I overlook that? What syntax are you using for pattern matching, e.g.
>
> erl_integer(<<E:64/signed>>=X), E >= ?LONG_MIN, E =< ?LONG_MAX ->
> E.
the second part is a guard? there is a , after the )
If I understand correctly that would be
erl_integer(<[E:64/signed]>=X) when E >= ?LONG_MIN or E =< ?LONG_MAX
E
the bit syntax is almost the same, the << and >> are changed to <[ and
]> because in efene bsl and bsr are << and >> like in C et al.
note: efene doesn't support -define yet, so that constants should be
defined in another way.
More information about the erlang-questions
mailing list