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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7dd5c59df710c50,start X-Google-Attributes: gid103376,public From: keniwasa@my-deja.com Subject: Record comparison special case Date: 1999/12/03 Message-ID: <829bp3$oba$1@nnrp1.deja.com>#1/1 X-Deja-AN: 556073575 X-Http-Proxy: 1.0 x29.deja.com:80 (Squid/1.1.22) for client 140.76.238.7 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Dec 03 21:13:10 1999 GMT X-MyDeja-Info: XMYDJUIDkeniwasa Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (WinNT; I ;Nav) Date: 1999-12-03T00:00:00+00:00 List-Id: I have a record made up of records in which only small parts (a few fields) are usually significant. The point is that I would like to compare two such records and determine whether the parts that both records consider to be significant are the same. The easiest way I could see to handle this is to have an "insignificant" value in every enumeration and have some "insignificant" coding for real values, but that's not an option since the types cannot be modified. The records themselves that comprise my big record also cannot be modified. While I could have a boolean "significant" field associated with every field of all my comprising records, it seems to me that there ought to be a better way. I'd like to store the 'Position and 'Size of the elements that I consider significant into a queue which would be associated with a big record, but I'm not exactly sure how I should go about doing the comparison if I'm given only the big records and a list of 'Positions and 'Sizes (other than having a huge case selection based on 'Position which I would like to avoid). I'm not even sure that 'Position will give me the values I want as far as a direct bit comparison. Thanks in advance, Ken Sent via Deja.com http://www.deja.com/ Before you buy.