Re: Stefano's problem

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Thu 31 Aug 2000 02:22:19 PM GMT
Message-ID: <39AE6A1B.B78E1AEA@icparc.ic.ac.uk>
Kish Shen wrote:
> 
> The problem only appear when fd is loaded:
> 
> [eclipse 1]: writeq(3 + -9).
> 3 + -9
> yes.
> [eclipse 2]: lib(fd).
> fd_domain.eco compiled traceable 0 bytes in 0.01 seconds
> fd_arith.eco compiled traceable 0 bytes in 0.03 seconds
> fd_util.pl compiled traceable 2112 bytes in 0.01 seconds
> fd_chip.pl compiled traceable 4708 bytes in 0.03 seconds
> fd_elipsys.pl compiled traceable 11004 bytes in 0.02 seconds
> fd.eco     compiled traceable 0 bytes in 0.11 seconds
> 
> yes.
> [eclipse 3]: writeq(3+ -9).
> 3+-9
> yes.


This is a hack introduced by Micha. You can switch it
off again using

[eclipse 6]: set_flag(syntax_option, not dense_output).
yes.
[eclipse 7]: writeq(3 + -9).
3 + -9
yes.


The proper solution would be to make writeq write only
the absolutely necessary spaces (which can be done by
looking at the lexical class of the adjacent characters).
I think Sicstus does it this way.

-- 
 Joachim Schimpf              /             phone: +44 20 7594 8187
 IC-Parc, Imperial College   /            mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK         /    http://www.icparc.ic.ac.uk/eclipse
Received on Thu Aug 31 15:21:23 2000

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:00 PM GMT GMT