From rybin@possum.srcc.msu.su Wed Mar 12 02:51:25 1997 Return-Path: Received: from ida.org by cronus.csed.ida.org (SMI-8.6/SMI-SVR4) id CAA01997; Wed, 12 Mar 1997 02:51:25 -0500 Received: from sw-eng.falls-church.va.us (ns1.sw-eng.falls-church.va.us) by ida.org (4.1/SMI-4.1) id AA28452; Wed, 12 Mar 97 02:51:57 EST Received: from crocus.gamma.ru by sw-eng.falls-church.va.us (8.7.1/) id HAA22113; Wed, 12 Mar 1997 07:45:57 GMT Received: from srcc.UUCP (uucp@localhost) by crocus.gamma.ru (8.7.6/8.7.3) with UUCP id KAA13232 for asis-comment@sw-eng.falls-church.va.us; Wed, 12 Mar 1997 10:48:38 +0300 (MSK) Received: by gamma.srcc.msu.su; Wed, 12 Mar 1997 10:48:12 +0300 Received: by possum.srcc.msu.su (UUPC/@ v5.09gamma, 14Mar93); Wed, 12 Mar 1997 10:40:52 +0300 To: asis-comment@sw-eng.falls-church.va.us Cc: rybin@crocus.gamma.ru Message-Id: Organization: Information Systems, SRCC, MSU From: "Sergey I. Rybin" Date: Wed, 12 Mar 97 10:40:52 +0300 X-Mailer: BML [MS/DOS Beauty Mail v.1.36] Subject: Asis.Errors.Storage_Error Lines: 47 Content-Length: 2281 Status: OR !topic Storage_Error as the name used for Asis error status !reference ASIS 95-4.1 !from Sergey Rybin !keywords Error_Kinds, Storage_Error !discussion Consider the definition of Storage_Error in Asis.Errors.Error_Kinds: ------------------------------------------------------------------------------ -- Section 4.1 type Error_Kinds ------------------------------------------------------------------------------ -- This enumeration type describes the various kinds of errors. -- type Error_Kinds is ( Not_An_Error, -- No error is presently recorded Value_Error, -- Routine argument value invalid Initialization_Error, -- ASIS is uninitialized Environment_Error, -- ASIS could not initialize Parameter_Error, -- Bad Parameter given to Initialize Capacity_Error, -- Implementation overloaded Name_Error, -- Context/unit not found Use_Error, -- Context/unit not use/open-able Data_Error, -- Context/unit bad/invalid/corrupt Text_Error, -- The program text cannot be located Storage_Error, -- Storage_Error suppressed Obsolete_Reference_Error, -- Argument or result is invalid due to -- and inconsistent compilation unit Unhandled_Exception_Error, -- Unexpected exception suppressed Not_Implemented_Error, -- Functionality not implemented Internal_Error); -- Implementation internal failure I am afraid, that the fact, that the name of the ASIS error status is the same as the name of the related predefined exception may lead to some confusions in an application code. An application could never use the simple name "Storage_Error" as the name of the ASIS error status because of the clash with the name of the predefined exception, whereas all the other names defining ASIS error statuses can be used as simple names. It is not a big deal, but, may be, somebody have a simple idea how to avoid this name clash? (Shame on me, I do not have the better name for Asis.Errors.Error_Kinds (Storage_Error) (or Asis.Errors.Storage_Error? :) ) Sergey Rybin