searching: example of C extension implementing port

2006-03-07 Thread Marco Maggi
Ciao, is there a sample extension implementing an input/output channel? I'm thinking of a memory channel (not an interface to a file or hardware port), something like the string port; is the channel API of Guile worth learning for this, or is it better to write something of my own? I only

Re: searching: example of C extension implementing port

2006-03-07 Thread Kevin Ryde
Marco Maggi [EMAIL PROTECTED] writes: is there a sample extension implementing an input/output channel? You'll have seen the Soft Ports node in the manual, it's pretty straightforward. I'm thinking of a memory channel (not an interface to a file or hardware port), something like the string

Re: How to process stdin with Guile

2006-03-07 Thread Kevin Ryde
Torsten Bronger [EMAIL PROTECTED] writes: 1) Will the result from scm_from_locale_string() garbage-collected cleanly? Yep. My concern is that the program should be able to read from stdin, too, and I question the protability of the file name /dev/stdin.