[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to bind a SCM to a symbol

From: Rob Browning
Subject: Re: How to bind a SCM to a symbol
Date: 17 Jan 2001 15:35:04 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Richard Guenther <address@hidden> writes:

> How can I bind a SCM value to some symbol? I.e. whats the equivalent
> to (define foo bla) in C if bla is a SCM? (Has to work with
> guile-1.3.4)

  gh_define("foo", bla);

will work if you just want to define "foo" in the current module.
You'll need something more like:

  gh_define("foo", bla);
  gh_eval_str("(export foo)");

if you want foo available publically.  I think this works under 1.3.4
and up.

Hope this helps.

Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930

reply via email to

[Prev in Thread] Current Thread [Next in Thread]