From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4427 invoked by alias); 20 Feb 2002 21:02:49 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 4255 invoked from network); 20 Feb 2002 21:02:45 -0000 Received: from unknown (HELO smtpgw.bnl.gov) (130.199.3.16) by sources.redhat.com with SMTP; 20 Feb 2002 21:02:45 -0000 Received: from bnl.gov ([130.199.128.163]) by smtpgw.bnl.gov with esmtp (Exim 3.32 #1 ) id 16ddsw-0007Ns-00; Wed, 20 Feb 2002 16:02:42 -0500 Received: from minos (minos.phy.bnl.gov [130.199.36.108]) by bnl.gov (8.9.2/8.9.2) with ESMTP id QAA15236; Wed, 20 Feb 2002 16:02:41 -0500 (EST) Received: from bviren by minos with local (Exim 3.34 #1 (Debian)) id 16ddss-00028k-00; Wed, 20 Feb 2002 16:02:38 -0500 From: Brett Viren MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15476.3822.73544.659246@minos.phy.bnl.gov> Date: Wed, 20 Feb 2002 13:02:00 -0000 To: Alex Kim Cc: guile-gtk@sources.redhat.com, guile-user@gnu.org Subject: Re: Newbie pleading for help... In-Reply-To: <20020220204607.86460.qmail@web20404.mail.yahoo.com> References: <15475.57735.94661.657028@minos.phy.bnl.gov> <20020220204607.86460.qmail@web20404.mail.yahoo.com> X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Reply-To: Brett Viren X-SW-Source: 2002-q1/txt/msg00035.txt.bz2 Alex Kim writes: > The problem with doing everything in guile-gnome is > that the toolkit contains too many stuffs already > written in c, X, and gl. And I was hoping that some > modification on GUI code will allow me to easily add > more features written in guile (in the way plug-ins > work; I thought this was what guile was for when I > first started learning it---although I now realize it > is much more than that). Ah, okay. Also, I reread your past posting and saw you wanted to use gh_repl(). I don't think this will work so well to combine gh_repl() and some GUI's main loop (maybe it could be made to work with guile-gtk, maybe not). So I would abandon gh_repl and instead read in scheme using the native GUI's text widget and calling gh_eval_str() on the result and/or load in the scheme as a file with gh_eval_file(). (Or, rather their scm_ equivalents, because I think gh_ interface is going away sometime, but gh_ is all *I* know right now....) I successfully used this in a C++/Gtkmm/Guile application that had to handle interactive users as well as servicing network requests. BTW, when passing unkown scheme code into guile, I used the _catch versions of the functions so that a typo in the scheme code wouldn't bring down the whole app. > In the mean time, I will > study your code to get better understaning in this > world. Well I am not a great scheme coder, so don't study it too hard! Luck, -Brett.