From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "wangy01" Newsgroups: gmane.lisp.guile.user Subject: Calling Scheme procedure from C ? Date: Fri, 11 Jul 2003 10:11:30 +0800 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <257889490.11085@mails.tsinghua.edu.cn> Reply-To: wangy01 NNTP-Posting-Host: main.gmane.org Content-Type: text/plain X-Trace: main.gmane.org 1057889815 25097 80.91.224.249 (11 Jul 2003 02:16:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2003 02:16:55 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 11 04:16:52 2003 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 19anSu-0006We-00 for ; Fri, 11 Jul 2003 04:16:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19anRt-0001kh-LS for guile-user@m.gmane.org; Thu, 10 Jul 2003 22:15:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19anR4-0001A8-3X for guile-user@gnu.org; Thu, 10 Jul 2003 22:14:58 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19anQs-0000Zw-7t for guile-user@gnu.org; Thu, 10 Jul 2003 22:14:46 -0400 Original-Received: from mails.tsinghua.edu.cn ([166.111.8.16]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19anQp-0000KF-NS for guile-user@gnu.org; Thu, 10 Jul 2003 22:14:44 -0400 Original-Received: (eyou send program); Fri, 11 Jul 2003 10:11:30 +0800 Original-Received: from 207.46.71.16 by mails.tsinghua.edu.cn with HTTP; Fri, 11 Jul 2003 10:11:30 +0800 X-WebMAIL-MUA: [207.46.71.16] Original-To: guile-user@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.lisp.guile.user:2070 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2070 I want to make a Scheme call "(write 10)" from my C code. I wrote: proc = scm_c_lookup("write"); scm_apply(proc, SCM_MAKINUM(10), scm_listofnull); but guile said: ERROR: In procedure apply: ERROR: Wrong type argument in position 1: #> , then I tried: proc = scm_c_lookup("write"); scm_apply(proc, scm_cons(SCM_MAKINUM(10)), scm_listofnull); guile printed the same error messages again. What should I do? _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user