From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d0490497bd8e3f95 X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: Syntax for tagged record types Date: 1997/05/27 Message-ID: <5meknj$4uf$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 244251053 Distribution: world References: X-XXMessage-ID: Organization: Royal Melbourne Institute of Technology Newsgroups: comp.lang.ada Date: 1997-05-27T00:00:00+00:00 List-Id: Robert Dewar writes: "Most people find the use of discriminants as "constructor arguments" a natural and powerful feature in Ada (though naturally they don't think in terms of this terminology). You can declare that "I think X is a kludge" for any X, but such a statement is only helpful to discussion if you give some idea *why* you think this." We had this argument a few years back now, and I think it was David Emery who posted about opening a file... type File_Type(Filename : String) is private; Here you have to supply a filename if you want to open a file - but once you have opened it, you don't necessarily want the filename any more. Similarly you may want to initialize an index into a hash table, which again requires a horrible long string, which is of no relavence once the index value is calculated. Dale