From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: gh_repl Date: Mon, 9 Jan 2012 10:11:56 -0800 (PST) Message-ID: <1326132716.20961.YahooMailNeo@web37903.mail.mud.yahoo.com> References: <1316922872.25009.YahooMailNeo@web37901.mail.mud.yahoo.com> <87wr907pa1.fsf@pobox.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326132739 2111 80.91.229.12 (9 Jan 2012 18:12:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 18:12:19 +0000 (UTC) Cc: Guile User To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 09 19:12:15 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkJhb-0006c0-8e for guile-user@m.gmane.org; Mon, 09 Jan 2012 19:12:11 +0100 Original-Received: from localhost ([::1]:39388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkJha-0006iN-Bd for guile-user@m.gmane.org; Mon, 09 Jan 2012 13:12:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkJhS-0006hK-Ao for guile-user@gnu.org; Mon, 09 Jan 2012 13:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkJhO-0007LZ-Ct for guile-user@gnu.org; Mon, 09 Jan 2012 13:12:02 -0500 Original-Received: from nm8.bullet.mail.ac4.yahoo.com ([98.139.52.205]:45212) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RkJhO-0007L8-98 for guile-user@gnu.org; Mon, 09 Jan 2012 13:11:58 -0500 Original-Received: from [98.139.52.190] by nm8.bullet.mail.ac4.yahoo.com with NNFMP; 09 Jan 2012 18:11:56 -0000 Original-Received: from [98.139.52.182] by tm3.bullet.mail.ac4.yahoo.com with NNFMP; 09 Jan 2012 18:11:56 -0000 Original-Received: from [127.0.0.1] by omp1065.mail.ac4.yahoo.com with NNFMP; 09 Jan 2012 18:11:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 868123.48596.bm@omp1065.mail.ac4.yahoo.com Original-Received: (qmail 28490 invoked by uid 60001); 9 Jan 2012 18:11:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1326132716; bh=IG3hCd9GBMdIcGd2/hnBYcbGroFY+XoEtXj5ZaRyFeI=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eus0XJsiOHXMETC4s45TxPbXUxbumnzkct8LoV1zIIXf3pb1tNskj2L6fQkErCF+7MOwgaNb0YFqm8CDxXafGoFZR+3VrMwtQERn65EjjMwy7NtHMqBoa977jMIUY+eqoNEvj4hGU7MCRdQfREkXaQJnkJcS2lCIzrtHWLl2VR0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XXQxP4/Yi8d9tJhNOP85zpOS5Eh7ACokBYocjERZgdFolHJYVSlQCejUNTEHkXIitF5ucsait6u+EEXfs6tUBAYHsBra2mNo5Zg+8fcEBssp2guK7rBi4E7JRo6b/NzzZElnb1yj74Mgs16z9JB1CmKRsXpRMmQXiXEbJsDvtU4=; X-YMail-OSG: Y.FG5XUVM1nJkswNV070EYzlDzZRXjMy4eATeEMyplG.gxz Ud2JtNlPCT9Vea.bpgnV7B_6Kl_dGPV797ecOixfll4BiQCNGRtYsAR5A9A2 pJoy4Q4JABmJdxlTcvnOv3rNOCDZVEOChmRoscn6IKgatuLBRTVoLwel88Op AthPICNLQTzTVfp.ehMPp7XfEPsIKGlGKm6FK1rkLdR0vLymx6eElqC3KJnw gMa2XA1HWGEor7Vx5QlSVxMDMdQg00e_k81FhuIJsC_4a2FK52gbxX9sGMHw PQBhsCIXZsLAsMmxeucnQ4XS3fiddnGLFLAyPy5KvgYmpd4NaCiUMSuAjRpC Y4HG9nVq54L8MXjrM2hXRB8y.8JfO3eaAI2UaVX5xwCDfnlx6gV.h74UMoLc Jbm4lrggTfwtdrFH1QnIQT0FLdX_hYYGaqGCYf75czl_inmNa.2SEezRWVfi 5JCeqteO4nuNXNrEr2k6T Original-Received: from [66.80.183.50] by web37903.mail.mud.yahoo.com via HTTP; Mon, 09 Jan 2012 10:11:56 PST X-Mailer: YahooMailWebService/0.8.115.331698 In-Reply-To: <87wr907pa1.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.52.205 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9105 Archived-At: > From: Andy Wingo =0A> To: Mike Gran = =0A> Cc: Guile User =0A> Sent: Monday, January 9, 2012 = 9:35 AM=0A> Subject: Re: gh_repl=0A> =0A> On Sun 25 Sep 2011 05:54, Mike Gr= an writes:=0A> =0A>> What is the replacement for gh_rep= l?=0A> =0A> I don't know!=A0 When I started with Guile in 2003 I think the = GH API was=0A> already deprecated :)=0A> =0A>> Which is to say, if I'm usi= ng Guile as an extension language, what=0A>> command should I execute in C= to drop me into the Guile REPL?=0A> =0A> What should happen when the user = does a C-d at the REPL?=A0 If the answer=0A> is that the application quits,= then it's probably scm_shell().=0A> Otherwise there isn't a very good answ= er.=0A> =0A> scm_call_1 (scm_public_ref ("ice-9 top-repl", "top-repl")) ?= =0A> =0A> Do we need a better answer here? :)=0A=0AFor guile-2.0, I eventua= lly settled on =0A=A0=0Ascm_call_1 (scm_c_public_ref ("system repl repl", "= start-repl"),=0A=A0=A0 scm_from_locale_symbol ("scheme"));=0A=A0=0AThis tri= ck I learned from this e-mail from Tristan=0A=A0=0Ahttp://lists.gnu.org/arc= hive/html/bug-guile/2011-10/msg00040.html=0A=A0=0AAnd with that, ",q" retur= ns control to the calling C function.=0A=A0=0A(I'm in=A0a push to release a= new rev of everything I've ever done in 2012.=0AI'd like to get to the poi= nt where all my guile-1.8 using progs only use=0Afunctions documented in th= e 1.8 manual and ditto for guile-2.0)=0A=A0=0AThanks,=0A=A0=0AMike