enif_send, terms and msg_env

Max Lapshin <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAMxVRxCkk6NpE_nfuQcsxoGVfKWnO=rHZBfAcCDdqdJkuKgA6w@mail.gmail.com>
http://erlang.org/doc/man/erl_nif.html#enif_send


> The message environment msg_env with all its terms (including msg) is invalidated by a successful call to enif_send.


I have created msg in another environment and I do not want to invalidate it.

Should I just prefer using NULL for msg_env in this case?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.