[plt-scheme] Problem importing srfi

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Aug 18 09:49:08 EDT 2008

At Sun, 17 Aug 2008 16:20:10 +0300, kbohdan at mail.ru wrote:
> How can i import srfi (with number or name) using r6rs imports ?
> No luck by now.
> 
> Neither of
>   (import (srfi 48))
>   (import (srfi-48))
>   (import (srfi format))
> works.

You could use

 (import (srfi \x34;8))

which turns "48" into a symbol by using the hex encoding of the
character "4".

I expect that we'll eventually support the path convention of SRFI 97,
but it's not in place, yet.

Also, beware that SRFIs that consume or produce lists will not work as
expected with R6RS, since the current SRFI implementations use
immutable pairs (as compatible the PLT dialects of Scheme). When we put
libraries in place using the SRFI 97 convention, they'll work as
expected with R6RS lists.

Matthew



Posted on the users mailing list.