comp.lang.ada
 help / color / mirror / Atom feed
* How to include vector operators?
@ 2010-12-06 21:03 tolkamp
  2010-12-06 21:37 ` Adam Beneschan
  2010-12-07  2:53 ` Gautier write-only
  0 siblings, 2 replies; 4+ messages in thread
From: tolkamp @ 2010-12-06 21:03 UTC (permalink / 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".



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-07 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-06 21:03 How to include vector operators? tolkamp
2010-12-06 21:37 ` Adam Beneschan
2010-12-07 11:11   ` tolkamp
2010-12-07  2:53 ` Gautier write-only

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