[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] Make typed-records compatible with pre-typed C
From: |
Moritz Heidkamp |
Subject: |
[Chicken-hackers] [PATCH] Make typed-records compatible with pre-typed Chickens |
Date: |
Sat, 16 Feb 2013 17:16:58 +0100 |
Hi Felix,
the attached patch makes the typed-records egg compatible with pre-typed
Chicken versions. It does so by importing the type-stubs module
(http://wiki.call-cc.org/eggref/4/type-stubs). Thus, code depending on
typed-records can transparently work with Chicken versions before
4.7.5. I also took the liberty to convert the tests to (use test) and
make them report the test result via exit code.
I'd be very thankful for applying the patch because my
persistent-hash-map egg uses typed-records to great avail but I'd have
to put in quite a bit of cond-expanding to make it compatible with older
Chickens while typed-records with my patch applied requires zero code
changes to make it work. I hope you agree on the utility of this :-)
Best wishes
Moritz
typed-records-with-type-stubs.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-hackers] [PATCH] Make typed-records compatible with pre-typed Chickens,
Moritz Heidkamp <=