unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.ping.de>
Cc: bug-guile@gnu.org
Subject: Re: Runtime error (already posted to the main group, sorry)
Date: 14 Nov 2002 20:51:21 +0100	[thread overview]
Message-ID: <87bs4saq12.fsf@zagadka.ping.de> (raw)
In-Reply-To: <200211141456.39504.jblazi@gmx.de>

jblazi <jblazi@gmx.de> 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


      reply	other threads:[~2002-11-14 19:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14 13:56 Runtime error (already posted to the main group, sorry) jblazi
2002-11-14 19:51 ` Marius Vollmer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bs4saq12.fsf@zagadka.ping.de \
    --to=mvo@zagadka.ping.de \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).