From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steve Pothier Newsgroups: gmane.lisp.guile.user Subject: port to ostream? Date: Wed, 23 Oct 2002 17:03:37 -0700 Sender: guile-user-admin@gnu.org Message-ID: <200210240003.g9O03beJ028563@payson.tucson.saic.com> Reply-To: i12day@myrealbox.com NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035418207 30968 80.91.224.249 (24 Oct 2002 00:10:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2002 00:10:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184VZZ-00082E-00 for ; Thu, 24 Oct 2002 02:10:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184VY1-0008Dz-00; Wed, 23 Oct 2002 20:08:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184VWx-0006YF-00 for guile-user@gnu.org; Wed, 23 Oct 2002 20:07:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184VWv-0006WT-00 for guile-user@gnu.org; Wed, 23 Oct 2002 20:07:18 -0400 Original-Received: from cpmx.mail.saic.com ([139.121.17.160]) by monty-python.gnu.org with esmtp (Exim 4.10) id 184VWv-0006Vp-00 for guile-user@gnu.org; Wed, 23 Oct 2002 20:07:17 -0400 Original-Received: from cp-its-ieg01.mail.saic.com by cpmx.mail.saic.com for guile-user@gnu.org; Wed, 23 Oct 2002 17:07:12 -0700 Original-Received: from cpmx.mail.saic.com ([139.121.17.160]) by cp-its-ieg01.mail.saic.com (NAVGW 2.5.1.19) with SMTP id M2002102317070620746 for ; Wed, 23 Oct 2002 17:07:06 -0700 Original-Received: from gatespass.tucson.saic.com by cpmx.mail.saic.com with ESMTP for guile-user@gnu.org; Wed, 23 Oct 2002 17:07:11 -0700 Original-Received: (from adm@localhost) by gatespass.tucson.saic.com (8.8.2/8.8.2) id RAA29385 for ; Wed, 23 Oct 2002 17:07:10 -0700 (MST) X-Authentication-Warning: gatespass.tucson.saic.com: adm set sender to using -f Original-Received: from nemesis2.tucson.saic.com(139.121.3.160) by gatespass.tucson.saic.com via smap (V2.0) id xma029383; Wed, 23 Oct 02 17:06:43 -0700 Original-Received: from payson.tucson.saic.com (payson.tucson.saic.com [139.121.3.181]) by nemesis.tucson.saic.com (8.10.2+Sun/8.10.2) with ESMTP id g9O06gs24473; Wed, 23 Oct 2002 17:06:42 -0700 (MST) Original-Received: from payson.tucson.saic.com (localhost [127.0.0.1]) by payson.tucson.saic.com (8.12.3/8.11.6/SuSE Linux 0.5) with ESMTP id g9O03bR9028566; Wed, 23 Oct 2002 17:03:37 -0700 Original-Received: (from pothiers@localhost) by payson.tucson.saic.com (8.12.3/8.12.3/Submit) id g9O03beJ028563; Wed, 23 Oct 2002 17:03:37 -0700 Original-To: guile-user@gnu.org Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:1266 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1266 I'm interfacing a C++ class library I wrote to Guile 1.6.0. Inside I have Print(ostream& os) method that needs to write a scheme object. I think I should be able to use scm_write (SCM obj, SCM port) to accomplish this except I don't see how to go from the OSTREAM I have in my method to the PORT that guile wants. Can anyone point me in the write direction? I'm going to have to do the reverse for (read) but I assume if I get it going one way the opposite direction will be obvious. I'm brand new to guile, but not to scheme or lisp. I'm VERY excited about the possibility of turning much of my C++ coding into scheme programming. (which is where I'll be if I can get the C++ library completely wired to guile) -sp- _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user