[erlang-questions] comparing of atoms in native code

Lukas Larsson lukas@REDACTED
Thu Jan 19 13:24:51 CET 2017


On Thu, Jan 19, 2017 at 12:51 PM, Caragea Silviu <silviu.cpp@REDACTED>

> It is safe to compare this with other ERL_NIF_TERM values using = or !=
> operators ?
> Or I need to use enif_is_identical ?

You have to use enif_is_identical. In the current implementation it works
to use == or !=, but that may very will change in the future.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170119/87455610/attachment.htm>

More information about the erlang-questions mailing list