[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH 0/5] List scrutiny special cases

From: Moritz Heidkamp
Subject: Re: [Chicken-hackers] [PATCH 0/5] List scrutiny special cases
Date: Tue, 09 Sep 2014 15:34:12 +0200

John Cowan <address@hidden> writes:

> Thanks, that's helpful.  The trouble is that such a file is an internal
> (not publicly documented, unstable) format.  So if I want to ship portable
> code along with type information for Chicken, I have to:
> 1) insert the type declarations in the code
> 2) compile with the -emit-type-file option
> 3) strip out the declarations again
> 4) hope the .types file continues to work with new compiler releases

Wait, what? Why not just something like this:

      (include "chicken-type-decls.scm"))

> That's really intolerable.  I suppose if I confine myself to : and
> define-type, then I could ship my code along with macros that turn them
> into (begin).

FTR, there is the type-stubs egg which defines those macros and some
more. It's purpose is to make code compatible with CHICKENS that didn't
yet have the type syntax but could be used for portability purposes,


reply via email to

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