Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!cam.news.pipex.net!pipex!edi.news.pipex.net!pipex!sunsite.doc.ic.ac.uk!hgmp.mrc.ac.uk!news.dcs.warwick.ac.uk!not-for-mail
From: N.Parekh@dcs.warwick.ac.uk (Neelesh)
Subject: problems with concat(?X,?Y,?Z).
X-Nntp-Posting-Host: nop
Message-ID: <1995Jun21.200935.2098@dcs.warwick.ac.uk>
Originator: N.Pa@nop
Sender: neepar@nop (Neelesh Parekh)
Organization: Department of Computer Science, Warwick University, England
Date: Wed, 21 Jun 1995 20:09:35 GMT
Lines: 31


Ok,
	this one is really getting on my nerves - i can't seem to solve it i
really need some help.
	How can i concat one variable and one constant into a single atom?
ie:
	concat(foo,Bar,Full).

foo is the constant, Bar is a variable and Full is the concatenation of the two
atoms. I've considered converting both foo and Bar to strings appending one
to the other *then* copying back to a string....... but it's just a *tad* long
winded..... if anyone has any better suggestions i would appreciate it - this is
NOT homework - it's a serious attempt at learning IC Prolog IIto implement
multi-agent systems.

If anyone can help i would appreciate it - especially if they have ANY knowledge
of KQML and prolog.


	Cheers, 		
			Neelesh.
-- 
_______________________________________________________________
Neelesh Parekh			Department of Computer Science.
neepar@dcs.warwick.ac.uk	University of Warwick. England.
_______________________________________________________________
-- 
_______________________________________________________________
Neelesh Parekh			Department of Computer Science.
neepar@dcs.warwick.ac.uk	University of Warwick. England.
_______________________________________________________________
