[Chicken-users] Compiler or interpreter?

2006-03-27 Thread John Cowan
Is there a procedure that can be invoked to tell a program whether it is running in the interpreter or as compiled code? -- Is not a patron, my Lord [Chesterfield],John Cowan one who looks with unconcern on a man http://www.ccil.org/~cowan struggling for life in the water, and w

Re: [Chicken-users] Compiler or interpreter?

2006-03-27 Thread Mario Domenech Goulart
Hello John, On Mon, 27 Mar 2006 17:14:15 -0500 John Cowan <[EMAIL PROTECTED]> wrote: > Is there a procedure that can be invoked to tell a program whether it is > running in the interpreter or as compiled code? I don't know if there is a specific procedure which does that, but a plain quick&dirty

Re: [Chicken-users] Compiler or interpreter?

2006-03-27 Thread Alex Shinn
At Mon, 27 Mar 2006 17:14:15 -0500, John Cowan wrote: > > Is there a procedure that can be invoked to tell a program whether it is > running in the interpreter or as compiled code? Not a procedure, but you can (cond-expand (compiling ...) (else ...)) -- Alex _

Re: [Chicken-users] Compiler or interpreter?

2006-03-27 Thread John Cowan
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))) -- John Cowan [EMAIL PROTECTED] www.ccil.org/~cowan www.ap.org The penguin geeks is happy / As under the

Re: [Chicken-users] Compiler or interpreter?

2006-03-27 Thread felix winkelmann
On 3/28/06, John Cowan <[EMAIL PROTECTED]> 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