bugMIT/GNU Scheme - Bugs: bug #28370, hash tables should be strong...

 
 
Show feedback again

bug #28370: hash tables should be strong unless explicitly desired otherwise

Submitted by:  Taylor R. Campbell <riastradh>
Submitted on:  Mon 21 Dec 2009 11:34:39 PM UTC  
 
Category: runtimeSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Suboptimal behavior
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: Open
Keywords: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 21 Dec 2009 11:34:39 PM UTC, original submission:

If one asks for a hash table, one should not get a weak hash table unless one explicitly asked for it. MAKE-EQ-HASH-TABLE and MAKE-EQV-HASH-TABLE currently confusingly yield strong hash tables, as a consequence of which only a small fraction of their uses in MIT Scheme actually needed key-weak hash tables, while for a much large fraction, using key-weak hash tables was either confusing or incorrect. We can't change the semantics of these two procedures immediately, however, because what they do now is what they have been documented to do.

See discussion at <http://lists.gnu.org/archive/html/mit-scheme-devel/2009-12/msg00032.html>. Use of MAKE-EQ-HASH-TABLE was eradicated from MIT Scheme in commit da6830c165b2540d93d1e3f1b31b6f0470392868, replaced by use of the more specific constructors MAKE-STRONG-EQ-HASH-TABLE and MAKE-WEAK-EQ-HASH-TABLE.

Taylor R. Campbell <riastradh>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by riastradh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup