chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Scope problem?


From: Peter Bex
Subject: Re: [Chicken-users] Scope problem?
Date: Mon, 1 Jun 2009 01:20:35 +0200
User-agent: Mutt/1.4.2.3i

On Sun, May 31, 2009 at 05:06:37PM -0600, Matt Gushee wrote:
> Sorry, it wasn't string-length, it was string-index.

OK, that clarifies it a bit ;)

> -- BEGIN fastcgi.scm ------------------------------------------------
> 
> [ copyright notice omitted ]
> 
>   ( import scheme
>            chicken
>            matchable
>            lolevel
>            srfi-1
>            srfi-4
>            srfi-13
>            foreign
>            foreigners
>            conditions )
  [code]

Import simply loads the import library (FOO.import.so) for each library
FOO you import, it doesn't actually load the library itself.  This makes
no difference for "built-in" libraries that are part of libchicken.so,
but for matchable, srfi-4, srfi-1, foreigners and srfi-13 you will have
to add a statement to load them as well.

You can either add (require-library srfi-13 srfi-1 srfi-4 matchable foreigners)
to your code, or replace the import and require-library pair with one
(use ...) or one (require-extension ...) expression.

Hope this helps!

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: pgpL2GpSV5DbU.pgp
Description: PGP signature


reply via email to

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