Checksum: 44162
Path: utzoo!utgpu!sarathy
From: sarathy@gpu.utcs.toronto.edu (Rajiv Sarathy)
Date: Tue, 22-Nov-88 19:16:00 EST
Message-ID: <1988Nov22.191600.26206@gpu.utcs.toronto.edu>
Organization: University of Toronto Computing Services
Newsgroups: comp.lang.prolog
Subject: Infix-to-prefix notation (Or: Why doesn't C-Prolog's "display" work?)
Reply-To: sarathy@gpu.utcs.utoronto.ca (Rajiv Sarathy)

According to Clocksin & Mellish, AND according to the C-Prolog user's manual,
"display(X) is supposed to display X "on the terminal in standard parenthe-
sized prefix notation".

The example on page 99 of the edition I have of C & M says that

?- display(a+b*c*c).

	should return

+(a,*(*(b,c),c))
yes

	However, the implementation of C-Prolog I'm using (on a SUN 3/280, if
it matters) merely returns X.

Does someone have the definition of the "display" predicate?
Thanks a lot in advance,

--Raj

-- 

 ______________________________________________________________________________
|  Disclaimer:  I'm just an undergrad.                                         |
|  All views and opinions are therefore my own.                                |
|                                                                              |
|  Rajiv Partha Sarathy                   sarathy@gpu.utcs.utoronto.ca         |
|______________________________________________________________________________|


