Re: string-index defined twice?
Chris Cramer <[EMAIL PROTECTED]> writes: > Actually, the # > suggests it's from strsrch.scm in SLIB. Yep, that was it. False alarm, this isn't a bug in Guile after all. > It seems that either SLIB or Guile's SLIB support should be > changed, but I'm not sure how. I wouldn't want to see Guile's string-index changed or removed. SLIB should probably rename its function like it is on your system. Thanks. -- Eric Gillespie, Jr. <*> [EMAIL PROTECTED] "I wish people didn't exist." ___ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile
Re: string-index defined twice?
On Sun, Nov 25, 2001 at 05:51:23PM -0500, Eric Gillespie, Jr. wrote: > % guile > guile> string-index > # > guile> (string-index "/path/to/blah" #\/ 1) > 5 > guile> (use-modules (ice-9 slib)) > guile> (require 'cgi) > guile> string-index > # > guile> (string-index "/path/to/blah" #\/ 1) > ERROR: In expression (string-index "/path/to/blah" #\/ ...): > ERROR: Wrong number of arguments to # > ABORT: (wrong-number-of-args) > > Type "(backtrace)" to get more information or "(debug)" to enter the debugger. > > This happens with both Guile 1.4 and 1.5.4. I found the > redefinition of string-index in ice-9/format.scm. Which > definition is correct? Can this be fixed before 1.6? Actually, the # suggests it's from strsrch.scm in SLIB. Strangely enough, in the Debian SLIB package that I'm using, string-index was renamed to strsrch:string-index, so I can't duplicate your problem. It seems that either SLIB or Guile's SLIB support should be changed, but I'm not sure how. -- C. Ray C. aka Christopher Cramer [EMAIL PROTECTED] http://www.pyro.net/~crayc/ ___ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile
Re: string-index defined twice?
Marius Vollmer <[EMAIL PROTECTED]> writes: > string-index from format.scm is probably not the problem > here since it is not exported from (ice-9 format). OK, so what is it? That's the only other sting-index i could find. -- Eric Gillespie, Jr. <*> [EMAIL PROTECTED] "I wish people didn't exist." ___ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile
Re: string-index defined twice?
Chris Cramer <[EMAIL PROTECTED]> writes: > On Sun, Nov 25, 2001 at 05:51:23PM -0500, Eric Gillespie, Jr. wrote: > > guile> (string-index "/path/to/blah" #\/ 1) > > ERROR: In expression (string-index "/path/to/blah" #\/ ...): > > ERROR: Wrong number of arguments to # > > ABORT: (wrong-number-of-args) > > > > Type "(backtrace)" to get more information or "(debug)" to enter the debugger. > > > > This happens with both Guile 1.4 and 1.5.4. I found the > > redefinition of string-index in ice-9/format.scm. Which > > definition is correct? Can this be fixed before 1.6? > > It looks like the string-index in format.scm should be removed. It's > probably just left over from SLIB. Yes, and it isn't even _used_ by format.scm. But the string-index from format.scm is probably not the problem here since it is not exported from (ice-9 format). ___ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile
Re: string-index defined twice?
On Sun, Nov 25, 2001 at 05:51:23PM -0500, Eric Gillespie, Jr. wrote: > guile> (string-index "/path/to/blah" #\/ 1) > ERROR: In expression (string-index "/path/to/blah" #\/ ...): > ERROR: Wrong number of arguments to # > ABORT: (wrong-number-of-args) > > Type "(backtrace)" to get more information or "(debug)" to enter the debugger. > > This happens with both Guile 1.4 and 1.5.4. I found the > redefinition of string-index in ice-9/format.scm. Which > definition is correct? Can this be fixed before 1.6? It looks like the string-index in format.scm should be removed. It's probably just left over from SLIB. -- C. Ray C. aka Christopher Cramer [EMAIL PROTECTED] http://www.pyro.net/~crayc/ ___ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile