PR# 4124 HASH_TABLE.clear_all does not do what the header comment says
Problem Report Summary
Submitter: ericbe
Category: EiffelBase
Priority: Medium
Date: 2004/11/16
Class: Bug
Severity: Non-critical
Number: 4124
Release: 5.5.1012
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
Synopsis: HASH_TABLE.clear_all does not do what the header comment says
Description
The header comment of HASH_TABLE.clear_all says: "Reset all items to default values" This is indeed what routines with the same name do in EiffelBase (e.g. ARRAY.clear_all). But what HASH_TABLE.clear_all does is actually removing all items from the container, also known as `wipe_out' everywhere else in EiffelBase (e.g. LIST.wipe_out). I wonder why HASH_TABLE.clear_all is not named `wipe_out'. After all, name consistency is one of the strong points of EiffelBase. (Another similar inconsistency is STRING.clear_all/wipe_out.)
To Reproduce
Problem Report Interactions