comp.lang.ada
 help / color / mirror / Atom feed
From: tolkamp <f.tolkamp@gmail.com>
Subject: How to include vector operators?
Date: Mon, 6 Dec 2010 13:03:45 -0800 (PST)
Date: 2010-12-06T13:03:45-08:00	[thread overview]
Message-ID: <1ba74849-bafa-499f-a448-661dff1f60bd@c39g2000yqi.googlegroups.com> (raw)

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".



             reply	other threads:[~2010-12-06 21:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 21:03 tolkamp [this message]
2010-12-06 21:37 ` How to include vector operators? Adam Beneschan
2010-12-07 11:11   ` tolkamp
2010-12-07  2:53 ` Gautier write-only
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox