home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1990-03-26 | 380 b | 16 lines |
- /*
- Copyright (c) 1986, 90 by Prolog Development Center
- */
- domains
- comdom = str(string); int(integer)
-
- goal
- msgcreate("\\pipe\\comtest",H),
- write("Created pipe with handle ",H,'\n'),
- msgsetwait(-1),
- msgrecv(comdom,RXHand,Msg),
- write("Received ",Msg," on handle ",RXHand,'\n'),
- Msg = str(Str),
- concat(Str,Str,DoubleStr),
- msgsend(comdom,H,str(DoubleStr)).