[Chicken-hackers] string-tokenize and fmt; maybe a module question
From:
Taylor Venable
Subject:
[Chicken-hackers] string-tokenize and fmt; maybe a module question
Date:
Thu, 2 Sep 2010 17:31:51 -0400
Hi there, Chicken wranglers! Earlier I was writing a program using the fmt egg and ran into a surprising problem: using it replaces the string-tokenize function from srfi-13 with an incompatible version, seemingly even if I didn't ask for it. Here's an example using the REPL:
CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.5.7 linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2010-08-12 on zareason (Linux)
CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.5.7 linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2010-08-12 on zareason (Linux)
I brought this up on #chicken but couldn't figure out why it was happening, if it was maybe the way the fmt egg works or perhaps a bug somewhere. It seems as if the fmt egg's definition of string-tokenize shouldn't be able to leak outside the fmt module. Or my reasoning about modules could be flawed as well. I've been able to work around it in the intermediary (using string-split instead) but I'd still be interested in knowing why this happens, in case I should face it again. I'm using version 0.703 of the fmt egg. Thanks for any insight.