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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1fee5782cd952ed7,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-03-11 09:19:22 PST Newsgroups: comp.lang.ada Path: sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!howland.reston.ans.net!agate!spool.mu.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!val From: val@fcom.cc.utah.edu (Val Kartchner) Subject: How do I avoid 'use' in this case? Message-ID: <1993Mar11.163904.18135@fcom.cc.utah.edu> Sender: news@fcom.cc.utah.edu Organization: University of Utah Computer Center X-Newsreader: TIN [version 1.1 PL8] Date: Thu, 11 Mar 93 16:39:04 GMT Date: 1993-03-11T16:39:04+00:00 List-Id: I know that the usage of 'use' is discouraged. I generally agree, but I do not see a way around it in this case. Is there something that I'm missing? We have a package called 'FIELD_DEF' which (among other things) defines a variant record type and an access type for referencing it. Here is the text of the errors generated for one of the lines: -- Begin included text 2693 if (comm_addr_group(i,j) /= NULL) then ..........................................1 %ADAC-E-NOTDECLOPOPND, (1) /= is not declared for the given operands [LRM 4.5] %ADAC-I-SUPPLOPARGTYPE, (1) Result type of the first (or only) operand of /= is access type field_type_ptr in field_def at line 180 %ADAC-I-POSSUSECALL1, (1) Possibly a selected component of (or use clause for) package field_def in field_def at line 167 is intended; this would make implicit binary operator /= (field_type_ptr; field_type_ptr) returning BOOLEAN declared in field_def at line 180 visible for a legal call -- End included text I followed the implied suggestion of the (VAX/VMS) Ada compiler and inserted a "use FIELD_DEF;" statement. I know that with non-operator functions (i.e.: functions who's names are alphanumeric + '_'), you can use the package name to avoid 'use'. As far as I know, there is no equivalent for operators. Is this true? If not, then how do I do it? Thanks in advance, -=:[ VAL ]:=- -- |================== #include ==================///=============| | "AMIGA: The computer for the creative mind" (tm) Commodore /// Weber State | | "Macintosh: The computer for the rest of us"(tm) Apple \\\/// University | |== "I think, therefore I AMiga" -- val@csulx.weber.edu ==\///= Ogden UT USA =|