[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Compiler or interpreter?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Compiler or interpreter? |
Date: |
Tue, 28 Mar 2006 04:43:29 +0200 |
On 3/28/06, John Cowan <address@hidden> wrote:
> Alex Shinn scripsit:
>
> > Not a procedure, but you can
>
> Ah, cool. So you can define your own procedure thus:
>
> (cond-expand (compiling (define (compiled?) #t)) (else (define (compiled?)
> #f)))
For example. Or call
(test-feature? 'script) ; running via csi -s
(test-feature? 'compiling) ; running as a compiler extension (-X)
(test-feature? 'csi) ; running in csi
cheers,
felix