🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #1337

Re: Turbo Prolog 2.0 tip

#1337
From: fore057
Date: Fri, 26 Oct 1990 19:58
22 lines
1307 bytes
In article <4097@goanna.cs.rmit.oz.au>, ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes:
> This may save someone else the half hour of frustrated head-scratching
> it caused me:  if you have
> 	readterm(<domain>, <variable>)
> in your Turbo Prolog 2.0 program, and at run-time it complains
> about an unrecognised functor, the problem _may_ really be a
> blank line.
> 
> Why won't Turbo Prolog allow layout characters in data terms?
> Perhaps this is how they get the "huge increase in speed" they
> boast of?  (Actually, I _don't_ get any huge increase in speed
> compared with ALS...)

Whenever you read terms into memory, it pays to error trap the term-reading
predicate.  A section of code is quoted in the users guide (pp438-439) which
will trap the readterm error, place the term file into an editor, and put
the cursor at the point where the error occured.

Regards,
Euan

"The eternal mystery of the world is its comprehensibility" - Einstein, 1936
Technical Details
Message-ID: <1990Oct27.085854.9537@canterbury>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!comp.vuw.ac.nz!canterbury!fore057
References: <4097@goanna.cs.rmit.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!comp.vuw.ac.nz!canterbury!fore057
From: fore057@canterbury
Newsgroups: comp.lang.prolog
Subject: Re: Turbo Prolog 2.0 tip
Message-ID: <1990Oct27.085854.9537@canterbury>
Date: 26 Oct 90 19:58:54 GMT
References: <4097@goanna.cs.rmit.oz.au>
Organization: University of Canterbury
Lines: 22