guile-user
[Top][All Lists]
Advanced

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

Re: some possible bugs and getting procedure on the top of the stack


From: Alex Vong
Subject: Re: some possible bugs and getting procedure on the top of the stack
Date: Sun, 20 Mar 2016 22:40:39 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hello!
>
> Did you mean to email address@hidden
>
Yes!

> Alex Vong <address@hidden> skribis:
>
>> When trying to write some C binding to flex using libguile-2.0, I notice 
>
> FWIW, I’d suggest using something like Danny Dubé’s SILex instead of
> writing bindings to Flex.
>
Where should I get SILex? The version used by Chicken Scheme seems to be
written on 1997, which is quite old, while the author's homepage is gone.

>> Besides, when reading
>> <https://libreplanet.org/wiki/Group:Guix/GSoC-2016>,
>> I notice librejs flags the scipts as non-free, such as,
>> <https://libreplanet.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*>.
>> Is this a known issue?
>
> No, probably worth reporting the the web site admins?
>
I emailed address@hidden about the issue.

>> Finally, how should I get the running procedure?
>> Currently, I am using the following code:
>>
>> (define my-proc-name
>>   (lambda _
>>     (frame-procedure (stack-ref (make-stack #t) 1))))
>>
>> (my-proc-name)
>> ==> #<procedure my-proc-name _>
>>
>> Is there better way to achieve this? Can continuation be used to
>> implement this? My guess is no, since you can only get "the next thing
>> to do" but not "the current thing you are doing". Am I right?
>
> Right.  However, note that the above may not always work especially on
> Guile 2.1/2.2.
>
OK.

>> Off-topic
>> =========
>> Also, I think I am interested in being a GSOC student. The project ideas
>> look tough though! Also, I need a new laptop, the '9' and '0' key
>> sometimes doesn't work. I guess it is because I am typing too much '('
>> and ')'.
>
> :-)
>
> Ludo’.



reply via email to

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