[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Rework library loading to support conditio
From: |
Peter Bex |
Subject: |
Re: [Chicken-hackers] [PATCH] Rework library loading to support conditional unit entry |
Date: |
Sun, 11 Nov 2018 21:03:44 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Tue, May 29, 2018 at 06:42:33PM +1200, Evan Hanson wrote:
> Hello fellow hackers,
>
> Here is a big, gnarly patch that finishes the work I started in Bergen,
> which was to change the way we handle library dependencies so that units
> can be loaded conditionally. This was inspired by Peter's changes to
> make import expressions lexically-scoped, so that you can write a
> program like the following and have it work like you'd expect:
>
> (if (some-condition)
> (let () (import (foo)) ...)
> (let () (import (bar)) ...))
>
> With Peter's changes, those imports will only affect the syntactic
> environments of their respective branches. However, when the libraries
> "foo" and "bar" are compiled in (for example when "-static" is used),
> they'll both be loaded unconditionally. This patch changes things so
> that those libraries will only be loaded when program execution reaches
> the corresponding import expression.
Hi Evan,
I think now's a good time to revisit this patch. Of course it no longer
applies. Would you care to rebase it?
Cheers,
Peter
signature.asc
Description: PGP signature
- Re: [Chicken-hackers] [PATCH] Rework library loading to support conditional unit entry,
Peter Bex <=