Re: csirc when transitioning from chicken 4 to 5
Perfect! I was not aware of cond-expand. Thanks! On Wed, Jan 15, 2020 at 11:28 AM Peter Bex wrote: > On Wed, Jan 15, 2020 at 11:00:02AM -0700, Matt Welland wrote: > > I have not been able to figure out how to make a .csirc that works for > both > > chicken 4 and 5. > > > > (import (chicken platform)) is not legal for chicken 4 but > > (chicken-version) is not available in chicken 5 until you've done the > > import. Chicken and egg :) > > Try cond-expand; > > (cond-expand > (chicken-5 > (import (chicken platform))) > (chicken-4 > (use extras))) > > Cheers, > Peter > -- -- Complexity is your enemy. Any fool can make something complicated. It is hard to keep things simple. - Richard Branson.
Re: csirc when transitioning from chicken 4 to 5
On Wed, Jan 15, 2020 at 11:00:02AM -0700, Matt Welland wrote: > I have not been able to figure out how to make a .csirc that works for both > chicken 4 and 5. > > (import (chicken platform)) is not legal for chicken 4 but > (chicken-version) is not available in chicken 5 until you've done the > import. Chicken and egg :) Try cond-expand; (cond-expand (chicken-5 (import (chicken platform))) (chicken-4 (use extras))) Cheers, Peter signature.asc Description: PGP signature
csirc when transitioning from chicken 4 to 5
I have not been able to figure out how to make a .csirc that works for both chicken 4 and 5. (import (chicken platform)) is not legal for chicken 4 but (chicken-version) is not available in chicken 5 until you've done the import. Chicken and egg :) How about having chicken 5 csi load ".csirc5"? Thanks -- Complexity is your enemy. Any fool can make something complicated. It is hard to keep things simple. - Richard Branson.