chicken-users
[Top][All Lists]
Advanced

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

Re: csirc when transitioning from chicken 4 to 5


From: Matt Welland
Subject: Re: csirc when transitioning from chicken 4 to 5
Date: Wed, 15 Jan 2020 14:15:14 -0700

Perfect! I was not aware of cond-expand. Thanks!

On Wed, Jan 15, 2020 at 11:28 AM Peter Bex <address@hidden> 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.

reply via email to

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