[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: static variables with scheme objects
From: |
Thamer Al-Harbash |
Subject: |
Re: static variables with scheme objects |
Date: |
Wed, 16 Jul 2003 14:12:47 -0400 (EDT) |
On Wed, 16 Jul 2003, sig wrote:
> I thought about doing something like
>
> void init() {
> scm_c_define("global-mutex", scm_make_mutex());
> }
>
> but this has the problem of not being accessable from other top
> level environments. Does anyone have some advice on how to get
> around this?
I've already been told that this will work and I am using this
method myself in my code.
I have no idea what the behaviour is like when you assign an SCM
to a global C variable.
--
Thamer Al-Harbash