chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] utf8 egg and byte-* procedures


From: Mario Domenech Goulart
Subject: Re: [Chicken-users] utf8 egg and byte-* procedures
Date: Thu, 25 Mar 2010 16:26:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Jeronimo

On Thu, 25 Mar 2010 14:20:43 -0300 Jeronimo Pellegrini <address@hidden> wrote:

> I have checked the egg source and indeed, the redefinitions are
> there (this is from utf8.scm):
>
> (import (rename (except scheme
>                         string string->list list->string string-fill!
>                         string-ref string-set! write-char read-char)
>                 (make-string make-byte-string)
>                 (substring byte-substring)
>                 (string-length byte-string-length) ;; <=== !!!
>
> Is there something else I have to do in order to have access to the 
> old procedures?

Actually, as far as I can see, the renaming is for importing, not for
exporting.  utf8 doesn't export `byte-string-length'.  So, if you want
`byte-string-length' available as the old `string-length', you can pick
it from scheme:

    (import utf8)
    (import (rename scheme (string-length byte-string-length)))

Hope it helps.

Best wishes.
Mario




reply via email to

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