chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] (load ...)


From: Peter Keller
Subject: Re: [Chicken-hackers] (load ...)
Date: Thu, 7 Jun 2007 16:11:24 -0500
User-agent: Mutt/1.4.2.1i

On Thu, Jun 07, 2007 at 04:01:13PM -0400, Graham Fawcett wrote:
> Example:
> 
> ;;; a.scm
> (define (hello) (print "hello from A!"))
> 
> ;;; b.scm
> (use a)
> (hello)
> 
> Now, run "csi -b b.scm" and you'll see:
> ; ...
> ; loading b.scm ...
> ; loading ./a.scm ...
> hello from A!

[snip]

> Does this help?

So in this example, a.scm is analyzed and compiled by the compiler and
not interpreted?

Can you do things like (define feh use)? Or is (use ...) like #include
for C?

Thank you.

-pete




reply via email to

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