Subject: Re: foreign code chicken/egg scenario

From: Paul Singleton <[email-masked]>
Date: Wed, 08 Nov 2000 15:59:31 +0000

Jan Wielemaker wrote:

> Sounds like dangerous practice.

Is load_foreign_library('MYLIB.DLL') unsafe where the DLL is (unknown
to Prolog) already linked?  If so, is there a workaround?

> If your dll embeds Prolog simply call
> the install() function after PL_initialise().

OK, but sometimes my DLL will be dynamically loaded by Prolog (e.g.
upon autoloading a native library which refers to it).

I'm trying to deploy MYLIB and LIBPL as "components", which work
together regardless of which is the chicken and which is the egg :-)

Paul Singleton