Subject: modules and foreign code

From: Paul Singleton <[email-masked]>
Date: Wed, 12 Apr 2000 15:12:30 +0100

I'm having a go at adding module support to JPL, and I have a few
questions (about SWI-Prolog):

 1) does foreign code _always_ have a context module?
    e.g. if we start the Prolog engine from C?

 2) is the null atom (or empty C string) a valid module name?

 3) does PL_pred(f,NULL) reliably (for valid f) refer to the
    prevailing context module?

 3a) is PL_pred( f, PL_context()) better in any way?

 4) does PL_predicate( name, arity, NULL) reliably refer to the
    prevailing context module?

 4a) is PL_predicate( name, arity,
PL_atom_chars(PL_module_name(PL_context())))
     better in any way?!

Paul Singleton