🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2053

Re: converting ascii character lists to functors

#2053
From: Richard A. O'Keefe
Date: Wed, 24 Apr 1991 07:21
18 lines
1450 bytes
In article <1991Apr21.061943.28184@comp.vuw.ac.nz,
Ray.Nickson@comp.vuw.ac.nz (Ray Nickson) writes:
: In article <EIVERSON.91Apr19200202@aigyptos.nmsu.edu
: eiverson@nmsu.edu (Eric Iverson) writes:
:    Is there some way that I could just open up a stream, write
:    things to it, and then read from it?  In other words, how can I read
:    from buffers in Quintus Prolog?  Any help would be appreciated.
: I wrote an interface to Unix pipe(2) using SICStus' foreign
: functions.  You could do it in Quintus too, though there may be a
: better way.

The Quintus Prolog library includes library(popen).  One of the features
of Quintus Prolog for a long time has been that users can define their
own types of streams.  library(popen) and library(charsio) are built on
top of that facility.  In QP3.0 this is improved and enhanced.
-- 
Bad things happen periodically, and they're going to happen to somebody.
Why not you?					-- John Allen Paulos.
Technical Details
Message-ID: <5386@goanna.cs.rmit.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!sdd.hp.com!spool.mu.edu!munnari.oz.au!goanna!ok
References: <EIVERSON.91Apr19200202@aigyptos.nmsu.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!sdd.hp.com!spool.mu.edu!munnari.oz.au!goanna!ok
From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe)
Newsgroups: comp.lang.prolog
Subject: Re: converting ascii character lists to functors
Message-ID: <5386@goanna.cs.rmit.oz.au>
Date: 24 Apr 91 07:21:48 GMT
References: <EIVERSON.91Apr19200202@aigyptos.nmsu.edu
Distribution: comp
Organization: Comp Sci, RMIT, Melbourne, Australia
Lines: 18