[erlang-questions] nif: how to check if a resource is given as an arg
Mon Sep 25 11:52:30 CEST 2017
In OTP-20 you can compare one resource term to another and get a match
if they refer to the same resource instance.
Beyond that, enif_get_resource is the *only* way to check if a term is a
On 09/23/2017 09:52 PM, Benoit Chesneau wrote:
> Is there any better method than first trying enif_get_resource to check if a resourcce is given as an argument? What would be the impact of doing it? Should I use an explicit function instead of trying to match it?
> - benoit
> erlang-questions mailing list
More information about the erlang-questions