chicken-users
[Top][All Lists]
Advanced

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

Re: New egg for SRFI 193: Command line


From: Lassi Kortela
Subject: Re: New egg for SRFI 193: Command line
Date: Fri, 23 Oct 2020 13:08:51 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.3.3

Everything seems to be in order, I’ve added the egg to the repository! :)

Thank you very much.

Unfortunately it has a bug (my fault): chicken-install pre-compiles it into a .so and (import (srfi 193)) in csi loads that .so instead of loading the source .scm file. The library uses cond-expand to figure out whether it's being loaded from csi or csc, but that doesn't work since csc has already expanded it when compiling the .so.

Is there a way to figure out if running in csi at runtime without using cond-expand?

The offending cond-expands are on this line: <https://github.com/lassik/chicken-srfi-193/blob/c962c276e6a78d6ff45521c4394a350393a065c7/srfi-193.scm#L19>

and this line: <https://github.com/lassik/chicken-srfi-193/blob/c962c276e6a78d6ff45521c4394a350393a065c7/srfi-193.scm#L29>

The wiki page looks fine too, please upload it to the wiki when you have the 
time.

I don't have an account to edit the wiki.



reply via email to

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