Subject: Re: [SWIPL] include problem?

From: Jan Wielemaker <[email-masked]>
Date: Tue, 15 May 2001 23:07:32 +0200

> is there any "new" problem with include/1 in the new 4 version?
> 
> when I consult a program that uses include/1 like
> 
> :-include(file).
> 
> it gives me a weird and "infinite" error. The same file works with the 3.4
> version. The error is as follows:
> 
> Domain error: `stream_or_alias' expected, found `[ ..........

Thanks.  This error was introduced in 4.0.4 where consult predicates
no longer modify current-input. 

In general, only use include to share declarations, such as multifile, 
or operators.

If you need the patch, get pl/boot/init.pl from the CVS server and
put it in the obvious place.  On Unix now do make and make install.
On Windows redo the `boot compilation' using

	* Open a DOS box and goto the Prolog home.
	* Run bin\plcon.exe -O -o boot32.prc -b boot/init.pl

	--- Jan