scsh-users
[Top] [All Lists]

Re: string-downcase in scheme-with-scsh

To: "Mike Simpson" <mike.simpson@doit.wisc.edu>
Subject: Re: string-downcase in scheme-with-scsh
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon, 20 Oct 2003 09:39:09 +0200
Cc: scsh-news@zurich.csail.mit.edu
"Mike Simpson" <mike.simpson@doit.wisc.edu> writes:

> Forgive me if there's an obvious answer to this, but I didn't see
> it in the SCSH FAQ.
>
> When using scsh in interactive mode, the (string-downcase) function
> performs as expected:
>
>   Welcome to scsh 0.6.4 (Olin Shivers)
>   Type ,? for help.
>   > (string-downcase "FooBarBat")
>   "foobarbat"
>
> However, when I bury a call to (string-downcase) inside a structure
> definition, even when I use (open scheme-with-scsh), scsh throws
> the following error:
>
>   Warning: undefined variables
>            #{Package 227 test}
>            string-downcase
>
>   Error: undefined variable
>          string-downcase
>          (package test)
>
> If I add the "srfi-13" module to the (open) call, i.e.
>
>   (open scheme-with-scsh srfi-13)
>
> then everything works fine.
>
> Is this expected behavior, or a bug in the interface exports of
> the scheme-with-scsh structure?

This is an expected behavior. SRFI-13 is not part of the scsh API
(which is what you get when you open SCHEME-WITH-SCSH). The
interactive mode opens some additional packages such as SRFI-1,
SRFI-13 and FLOATNUMS for convenience.

--
Martin

<Prev in Thread] Current Thread [Next in Thread>