chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Broken `utf8#string-fill!`?


From: John Cowan
Subject: Re: [Chicken-users] Broken `utf8#string-fill!`?
Date: Thu, 12 Jul 2018 18:10:46 -0400

You can't fill a literal string; you have to treat it as immutable.

On Thu, Jul 12, 2018 at 4:09 PM, Henry Hu <address@hidden> wrote:
Hello,

`utf8#string-fill!` isn't working for me.  Anyone experiencing this problem?

CHICKEN
(c) 2008-2017, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.13.0 (rev 68eeaaef)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2017-12-11 on yves.more-magic.net (Linux)

#;1> (use utf8)
#;2> (string-fill! "jj" #\space)

Error: utf8 trailing char overflow
""
1

    Call history:

    <syntax>      (string-fill! "" #\space)
    <eval>      (string-fill! "" #\space)    <--

Thanks,
Henry

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users



reply via email to

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