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,821f293084877cad X-Google-Attributes: gid103376,public From: je@bton.ac.uk (John English) Subject: Re: Adding a "Project Types" layer to a project Date: 1996/05/01 Message-ID: #1/1 X-Deja-AN: 152450404 references: <3186E51C.250@post.drexel.edu> organization: University of Brighton, UK newsgroups: comp.lang.ada Date: 1996-05-01T00:00:00+00:00 List-Id: Chris Papademetrious (st92j0gw@post.drexel.edu) wrote: : /home/chrispy/bot > gnatmake test : gcc -c test.adb : test.adb:20:20: invalid operand types for operator "+" : gnatmake: *** compilation failed. : If I use the type from the package "vectors" directly, it works. If I create a subtype in types, and then use that, it fails. What am I missing? Thanks in : advance... You'll have to provide a renaming of "+" in Types, or "with Vectors" and "use [type] Vectors" in the main program. "+" is in Vectors but not in Types, so the program doesn't know anything about it. -- ---------------------------------------------------------------------------- John English , Dept. of Computing, University of Brighton "Disks are divided into sex and tractors..." ----------------------------------------------------------------------------