From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: unknown location: definition in expression context in subform optname-from of "_^" Date: Sun, 29 Jan 2012 10:06:15 -0800 (PST) Message-ID: <1327860375.17453.YahooMailNeo@web37907.mail.mud.yahoo.com> References: <4F20CEE7.4000403@gmail.com> <1327551746.85660.YahooMailNeo@web37907.mail.mud.yahoo.com> <4F21BFFC.8040300@gmail.com> <87d3a6ovhs.fsf@netris.org> <4F21F635.4020404@gmail.com> <8762fxq3rr.fsf@netris.org> <4F220F84.5090601@gmail.com> <4F221BD3.8090105@gmail.com> <87r4ykl36k.fsf@netris.org> <87obtnzm2p.fsf@pobox.com> <87d3a3lid6.fsf@netris.org> <87k44bzb7l.fsf@pobox.com> <878vkrkuz7.fsf@netris.org> Reply-To: Mike Gran NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327860384 7010 80.91.229.3 (29 Jan 2012 18:06:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2012 18:06:24 +0000 (UTC) Cc: Andy Wingo , "guile-devel@gnu.org" To: Bruce Korb , Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 29 19:06:23 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrZ8w-0004qQ-Hd for guile-devel@m.gmane.org; Sun, 29 Jan 2012 19:06:22 +0100 Original-Received: from localhost ([::1]:35207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrZ8v-0007un-Th for guile-devel@m.gmane.org; Sun, 29 Jan 2012 13:06:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrZ8t-0007qy-9v for guile-devel@gnu.org; Sun, 29 Jan 2012 13:06:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrZ8r-0000M0-Rn for guile-devel@gnu.org; Sun, 29 Jan 2012 13:06:19 -0500 Original-Received: from nm28-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.35]:34157) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RrZ8r-0000Lw-Dz for guile-devel@gnu.org; Sun, 29 Jan 2012 13:06:17 -0500 Original-Received: from [98.138.90.51] by nm28.bullet.mail.ne1.yahoo.com with NNFMP; 29 Jan 2012 18:06:15 -0000 Original-Received: from [98.138.89.254] by tm4.bullet.mail.ne1.yahoo.com with NNFMP; 29 Jan 2012 18:06:15 -0000 Original-Received: from [127.0.0.1] by omp1046.mail.ne1.yahoo.com with NNFMP; 29 Jan 2012 18:06:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 903685.45007.bm@omp1046.mail.ne1.yahoo.com Original-Received: (qmail 21044 invoked by uid 60001); 29 Jan 2012 18:06:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1327860375; bh=IxNdbfUa1jm07hopkpkBuGbFtj2gCFXNMH9RjlSwKGo=; 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=zssRLTENeU3pQhhOmUKBzO46NDmDuoI1Rr3hXihN6M880hYMY/oHW/2Zzg5bpR1b3Aozsre4WM0h4sCdcFh5PHTZzzD/f0zuOqsazLZYhNy14kPfOcPQ3AIzYFvHqy0jWFKyH+1NA39nHq1piLmrsxm/Jdh1MRlEWcfa/6H0Wec= 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=BdrxKBHNjmig+C8MZ5VJPNZPsyg/Mo+PyYuH82G/JfB2AQIOUZVyD4ZQllf2L1KaezSilsl/SbTspgr7WYHJBRq46szDyhvyfxzJEHBeXLgVglXaqzs3QCHqa1MePZxpQkIqJ0vr+NVs9Us0lLRLWmFH9+ZQiHPIprzTgW1a3TQ=; X-YMail-OSG: HMVu.NcVM1nIBwAzM1hrKIpnhUW2q5oOLA6u7VsKHaD442l mvo2X8WnHHhIokLZOuXomsoMBuLF4uu_mcv828SWUL9eiZa_AxKq4y_KHbVq gB9H8sszrqpvN0x1hNOM9TtlwTuGec6TTctrEb7PCMN4QkeGwpE_oylO8OQi jITbVyHb1p8a0ntHtIIni7RxJ0BTfEElPToDBtIUc2pZ.ipspf0nV.rhuNrT T1XOY89i0u0gXzfkIj8aUb6ZyKD.0ft7nkjXsVyITwAH3BTjfJflIzO_VmnB EPO6OVPDPLrih6WCnhN5JCPLpdNZEuiJ9yIVPGQrgREnqporBQsRkbB0cA6O s6SDwSwbSZFp0pkeOB7athAzv25imlBH1VRbjKZybZGl2hc8pg4_VBhGLqkL FGKoqJe0oP3k_VyE.SUykgOURG8jNpVEtBfdamSImUx9OQAPhXtaDty06Hq8 0Cc63W9nKOvawNnn_QONWMYgSUI9yu.lz4Iy2xjIMRSdbC4RIxAP7GsKZWcI DumCnGlaL4_4ZH8.KfYo.80OIfhKt3JAi7rudHuAKIouPkD2I854VIuNR2qV lpWp4a9.lJVIa Original-Received: from [71.140.65.197] by web37907.mail.mud.yahoo.com via HTTP; Sun, 29 Jan 2012 10:06:15 PST X-Mailer: YahooMailWebService/0.8.116.331537 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.138.91.35 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13729 Archived-At: > From: Bruce Korb =0A=0A> On Sat, Jan 28, 2012 at 8:= 12 PM, Mark H Weaver wrote:=0A>> In short, this single fu= nction allows code to do the ideal thing=0A>> relatively painlessly. =A0Ty= pical usage might be something like this:=0A>> =0A>> =A0SCM=0A>> =A0my_ev= al (const char *string, const char *file_name,=0A>> =A0 =A0 =A0 =A0 =A0lon= g line, long column)=0A>> =A0{=0A>> =A0 =A0return scm_eval_string_from_fi= le=0A>> =A0 =A0 =A0(scm_from_locale_string (string), SCM_UNDEFINED,=0A>> = =A0 =A0 =A0 scm_from_locale_string (file_name), line, column, 0);=0A>> =A0= }=0A>> =0A>> What do you think?=0A> =0A> I think it is what I've wanted fo= r years.=A0 Thank you!!=0A> Any of these variations would make me happy.=0A= =0AFWIW, looking at Andy's C functions that call eval-string, they=0Aseem s= imple enough.=A0 But I never would have come up with that on my own.=0AWhen= I'm doing C, I tend to focus on C API.=0A=0AI'm agnostic on whether there = should be a new C function for this,=0Abut, if there isn't, the code from= =0Ahttp://lists.gnu.org/archive/html/guile-devel/2011-03/msg00091.html=0Ash= ould make its way into the manual as a reminder that you can do=0Abetter th= an scm_c_eval_string.=0A=0AThanks,=0AMike=0A