guile-user
[Top][All Lists]
Advanced

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

Re: Gurus? Care to re-explain the absense of gh_set_x() for me?


From: Thien-Thi Nguyen
Subject: Re: Gurus? Care to re-explain the absense of gh_set_x() for me?
Date: Fri, 13 Jul 2001 03:47:06 -0700

   From: Sam Tregar <address@hidden>
   Date: Fri, 13 Jul 2001 02:01:43 -0400 (EDT)

   Simple put, how can I implement this call in C:

      (+= a 10)

   My attempt was something like this in C:

      (set! a (+ a 10))

   But since there's no (gh|scm)_set_x in Guile, I'm stuck.

what's wrong w/:

  SCM a;
  a = scm_sum (a, SCM_INUM (10));

?  you could use a function pointer to abstract the operator...
maybe i'm missing a constraint somewhere.

thi



reply via email to

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