From jrompre@uwindsor.ca  Sun Jun  6 23:02:42 1999
Received: from naps.uwindsor.ca ([137.207.232.1])
	by swi.swi.psy.uva.nl (8.9.3/8.9.3) with SMTP id XAA14195
	for <prolog@swi.psy.uva.nl>; Sun, 6 Jun 1999 23:02:33 +0200 (MET DST)
Received: 	id RAA17530; Sun, 6 Jun 1999 17:01:38 -0400
Received: by gateway id RAA37703 for <prolog@swi.psy.uva.nl>; Sun, 6 Jun 1999 17:01:39 -0400 (EDT)
Message-Id: <199906062101.RAA37703@server.uwindsor.ca>
From: "Jean-Francois Rompre" <jrompre@uwindsor.ca>
To: <prolog@swi.psy.uva.nl>
Subject: Can't assign a module name with getenv/2
Date: Sun, 6 Jun 1999 17:02:25 -0400
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


Hello,

I would be grateful for any advice with the following 
problem.

In my load file, I use getenv to obtain the search path
used to make it possible to call use_module as follows:

	use_module( util( util)),
	use_module( interface( history)),
	etc...

However, when I try to obtain the module name itself, e.g.
display( prt), from a stored env. variable, the system can't find it.
When I instead  use 'display( prt)' in hardcoded form , everything
works like a charm.

In other words, I am trying to do this: create the variable DPY in
a shell script :
	...
	DPY="display( prt)";export DPY
	...
	< pl command>


which then starts prolog with the application loading
file and the initialization clause. The intialization clause then
creates an exception when 
	...
	getenv( 'DPY',  DisplayModule),
	use_module( DisplayModule ),	
	 ...
But when I replace the above two statements  with

	....
	use_module( display( prt)	),
	....
it compiles without any error message.

Thanks for your help!

Cheers,

J.-F.

