From jan@swi.psy.uva.nl Tue May 15 23:07:32 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f4FL7W322899;
	Tue, 15 May 2001 23:07:32 +0200 (MET DST)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id f4FL7WV19910;
	Tue, 15 May 2001 23:07:32 +0200
Date: Tue, 15 May 2001 23:07:32 +0200
Message-Id: <200105152107.f4FL7WV19910@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: [SWIPL] include problem?
To: Sebastian Sardina <ssardina@cs.toronto.edu>, prolog@swi.psy.uva.nl
In-Reply-To: Sebastian Sardina's message of Tue, 15 May 2001 16:07:36 -0400
Phone: +31 - 20 - 525 6121

> 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

