Path: 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 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(, ) > 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