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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad030c25af062445,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!postnews.google.com!c39g2000yqi.googlegroups.com!not-for-mail From: tolkamp Newsgroups: comp.lang.ada Subject: How to include vector operators? Date: Mon, 6 Dec 2010 13:03:45 -0800 (PST) Organization: http://groups.google.com Message-ID: <1ba74849-bafa-499f-a448-661dff1f60bd@c39g2000yqi.googlegroups.com> NNTP-Posting-Host: 77.248.181.38 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1291669425 13883 127.0.0.1 (6 Dec 2010 21:03:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 6 Dec 2010 21:03:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c39g2000yqi.googlegroups.com; posting-host=77.248.181.38; posting-account=nZAcngoAAACcfYM9wDw3w9Z1XR3bObfs User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1; .NET4.0C),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:15823 Date: 2010-12-06T13:03:45-08:00 List-Id: In my application the package Ada.Numerics.Generic_Real_Arrays is included. Code: with Ada.Numerics.Generic_Real_Arrays; package Vectors is new Ada.Numerics.Generic_Real_Arrays(Float); How to include the vector operators like "+" and "-" ? I tried the follwing: function "+" (Left, Right : Vectors.Real_Vector) return Vectors.Real_Vector renames Ada.Numerics.Generic_Real_Arrays.Instantiations."+"; However this gives the error: invalid prefix in selected component "Generic_Real_Arrays".