foreign frame and install_

Haitao Zhang <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFUyvhrqbLsO6Uzp9vKZT_fHTfevzR_pmKj=tiK=HChdQHdnxw@mail.gmail.com>
Previously I asked the following question:
On Tue, Feb 4, 2014 at 12:59 AM, Haitao Zhang <[email protected]> wrote:

> Incidentally what is the best way to keep a term like FUNCTOR_literal1
> that is really a constant across foreign calls?
>

By poking around the swipl source code a little it seems that the answer is
to do all the initializations in the install_(module) function. Presumably
bindings created inside the install_ functions will not be discarded upon
exit unlike regular foreign function calls.

Haitao
-------------- next part --------------
HTML attachment scrubbed and removed
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.