Path: utzoo!mnetor!uunet!cos!duc From: duc@COS.COM (Duc Kim Nguyen) Newsgroups: comp.lang.prolog Subject: Question on get0/read and call Message-ID: <720@cos.COM> Date: 30 Dec 87 14:20:58 GMT Organization: Corporation for Open Systems, McLean, VA Lines: 19 Keywords: prolog term, list, atom I have a question concerning get0/read and call (I am using Quintus Prolog): (1) A predicate f is defined with :- op(700,fx,f). (2) A prompt requests input from the terminal: a) when I use read/1 to get input, eg. f tata, and call/1 on the input, the call takes place, ie., execution of predicate f occurs with input tata; b) when I decided to use the prompt library which uses a loop of get0/1 to build up a list of input, and used atom_chars to convert list into atom, the call/1 on this term `f tata' resulted in prediciate 'f data' undefined. Can someone explain to me what the difference between these two cases ? It seemed the blank made a difference in the two cases ? cheers duc@COS.COM