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: Sam Tregar
Subject: Re: Gurus? Care to re-explain the absense of gh_set_x() for me?
Date: Fri, 13 Jul 2001 12:20:54 -0400 (EDT)

On Fri, 13 Jul 2001, Brett Viren wrote:

> You will need to link in libguile to perl to allow Inline::Guile,
> (right?), so you will have all the features of guile.  In your
> initialization phase, you just need to call gh_eval_str("...") with
> the suggested macro to define += in the scheme world.  You could then
> write a C wrapper or just use gh_call/gh_apply from the overloaded
> Perl imp of "+=".

Sounds good, but you can't gh_apply a macro!  If I could do that I could
just do:

  gh_call2(gh_lookup("set!"), a, gh_call2(gh_lookup("+"), a, b));

Which fails with an error about how "set!" isn't a procedure.  I guess
great minds think alike though - this was the first thing I tried!

-sam





reply via email to

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