chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Fix #1133


From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] Fix #1133
Date: Thu, 26 Jun 2014 18:13:35 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Peter Bex scripsit:

> It's not 100% separate, the (begin ...) form allows embedded Scheme forms.

Yes.  As a matter of style, that's meant to be used in situations like
this:

(define library (foo)
  ...
  (cond-expand
    ((library (scheme complex))
     (import (only (scheme complex) real-part imag-part))
    (else
     (begin
       (define (real-part z) z)
       (define (imag-part z) 0))))
  ...)

> Also, our module system already supports separation into files, either
> by using INCLUDE or the shorthand form (module NAME (EXPORT ...) FILENAME)
> from http://wiki.call-cc.org/man/4/Modules

But it does not support separate compilation of those files.  As I said
before, I personally don't consider that a severe limitation.

-- 
John Cowan          http://www.ccil.org/~cowan        address@hidden
You escaped them by the will-death and the Way of the Black Wheel.
I could not.  --Great-Souled Sam



reply via email to

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