slib-discuss
[Top][All Lists]
Advanced

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

[Slib-discuss] [patch] slib 3b3 breaks in require.scm when guile prefix


From: Utz-Uwe Haus
Subject: [Slib-discuss] [patch] slib 3b3 breaks in require.scm when guile prefix keywords are used
Date: Tue, 8 May 2012 13:37:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120430 Icedove/3.0.11

Dear all,

I have some legacy code written for both guile and CL which uses

        (read-set! keywords 'prefix)

to enable CL-style keyword syntax in the guile reader. Recent SLIB
breaks with this setting in require.scm, where
        slib:report-locations
calls (WRITE ':) through the report:print function. This function
(looking rather different then) worked fine at least in 2.something
SLIB, but now generates a reader error because the COLON symbol is now
special to the reader.

To reproduce: start
              $ guile
              > (read-set! keywords 'prefix)
              load  slib:
              > (use-modules (ice-9 slib))

... reader error in require.scm ...

I know that what I do with guile is a hack, but it would still be nice
to have SLIB loadable with this setting.

I would suggest the fix below, using #\: instead of ': to denote the
character.

This patch is enough for me, but I have not checked whether the use of
': in color.scm error statements might create similar trouble for others.

Yours,
Utz


-- 
Utz-Uwe Haus                                            address@hidden
IFOR, Dept. of Math, ETH Zurich
GPG key 0x9432B191                                       address@hidden

Attachment: patch-guile-prefix-kwd
Description: Text document


reply via email to

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