From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.bugs Subject: Re: Runtime error (already posted to the main group, sorry) Date: 14 Nov 2002 20:51:21 +0100 Sender: bug-guile-admin@gnu.org Message-ID: <87bs4saq12.fsf@zagadka.ping.de> References: <200211141456.39504.jblazi@gmx.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037318473 31618 80.91.224.249 (15 Nov 2002 00:01:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 00:01:13 +0000 (UTC) Cc: bug-guile@gnu.org 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 18CTv0-0008Cr-00 for ; Fri, 15 Nov 2002 01:01:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CQHD-0008AN-00; Thu, 14 Nov 2002 15:07:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18CQ11-0004Vp-00 for bug-guile@gnu.org; Thu, 14 Nov 2002 14:51:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18CQ0x-0004Uk-00 for bug-guile@gnu.org; Thu, 14 Nov 2002 14:51:01 -0500 Original-Received: from dialin.speedway43.dip175.dokom.de ([195.138.43.175] helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.10) id 18CQ0x-0004Ta-00 for bug-guile@gnu.org; Thu, 14 Nov 2002 14:50:59 -0500 Original-Received: (qmail 7125 invoked by uid 1000); 14 Nov 2002 19:51:21 -0000 Original-To: jblazi In-Reply-To: <200211141456.39504.jblazi@gmx.de> Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: bug-guile-admin@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.bugs:567 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:567 jblazi writes: > scm_eval_string((scm_unused_struct*)"(test_function 4)"); You can not just cast a char* to a SCM. Where did you get that idea? (Maybe there is some misleading stuff in the manual, that's why I ask.) You should either use scm_c_eval_string, scm_c_eval_string ("(test_function 4)"); wich can work directly with C strings, or use scm_str2string to convert the C string into a Scheme string: scm_c_eval_string (scm_str2string ("(test_function 4)")); -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile