Subject: Re: modules and foreign code

From: "Richard A. O'Keefe" <[email-masked]>
Date: Thu, 13 Apr 2000 11:27:16 +1200 (NZST)

2) is the null atom (or empty C string) a valid module name?
	
Prolog atoms can't map to C strings quite that simply.
Try

    ?- name(X, [0]), assert(X:p(1)), X:p(N).

It works in SWI Prolog, and should work in any halfway reasonable Prolog.
Prolog atoms may contain _any_ character including NUL.

    ?- X = '', assert(X:p(1)), X:p(N).

also works.