home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / prolog / 2298 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!newsserver.cs.uwindsor.ca!arindam
  2. From: arindam@cs.uwindsor.ca (Arindam Das)
  3. Newsgroups: comp.lang.prolog
  4. Subject: same predicate in different files ?
  5. Keywords: Quintus Prolog, predicate/same arity, different files
  6. Message-ID: <2302@newsserver.cs.uwindsor.ca>
  7. Date: 22 Dec 1992 20:48:53 GMT
  8. Sender: news@server.uwindsor.ca
  9. Lines: 27
  10.  
  11. Hi netters,
  12.  
  13.  
  14. Is it possible in Quintus Prolog to define same predicate (of same arity) in
  15. more than one file and consult them together ?
  16.  
  17. Suppose I have a rule 
  18.  
  19.         tree(A1, A2):-
  20.               A1 = branch,
  21.               A2 = branch.
  22.  
  23.       in file1.pl and file2.pl which have been developed separately
  24. by different persons. Now I want to consult both files together since
  25. they are parts of the same program. HOW COULD I DO THAT ?
  26.  
  27.  
  28. Hint of any form is appreciated.
  29.  
  30.  
  31. Thanx in advance.
  32.  
  33. -arindam
  34. -- 
  35. Arindam Das                            email: arindam@CS.Uwindsor.Ca
  36. Dept. of Comp. Sci.                           ph# (519)253-4232Ext 3003/3007
  37. U. of Windsor, Ont, Canada             
  38.