chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #818: string-hash error


From: Chicken Trac
Subject: Re: [Chicken-janitors] #818: string-hash error
Date: Wed, 18 Apr 2012 22:16:06 -0000

#818: string-hash error
-----------------------------+----------------------------------------------
  Reporter:  zbigniew        |       Owner:       
      Type:  defect          |      Status:  new  
  Priority:  critical        |   Milestone:  4.8.0
 Component:  core libraries  |     Version:  4.7.x
Resolution:                  |    Keywords:       
-----------------------------+----------------------------------------------

Comment(by zbigniew):

 Believe it or not, this seems to be related to the posix egg.  Any
 string=? hash table created after posix is loaded will fail.  Try the
 following script in csi:

 {{{
 (use srfi-69)
 (define h (make-hash-table string=?))
 (define h2 (make-hash-table string=?))
 (use posix)
 (define h3 (make-hash-table string=?))
 (hash-table-set! h "foo" 1)
 (hash-table-set! h2 "bar" 2)
 (hash-table-set! h3 "baz" 3)           ;; error
 }}}

 {{{
 Error: (string-parse-start+end) Illegal substring START spec
 #<procedure (string-hash s1126 . maybe-bound+start+end1127)>
 #f
 "baz"
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/818#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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