comp.lang.ada
 help / color / mirror / Atom feed
From: Mehdi Saada <00120260a@gmail.com>
Subject: Re: no + or - defined for fixed point types in Standard, why ?
Date: Thu, 25 Jan 2018 05:33:46 -0800 (PST)
Date: 2018-01-25T05:33:46-08:00	[thread overview]
Message-ID: <3c342468-67da-4973-a318-14e0cf1293fb@googlegroups.com> (raw)
In-Reply-To: <p4bio0$s3b$1@franka.jacob-sparre.dk>

generic
   type Modele is delta <>;
package P_Proba1 is
   type T_Proba is private; 
   function "+" (
         Un,                   
         Deux : in     T_Proba ) 
     return T_Proba; 
private
	type T_proba is new MODELE range 0.1..1.0;
end P_Proba1;

package body P_Proba1 is
	function "+"
     (Un,                   
         Deux : in     T_Proba)
        return T_Proba is (P_Proba1."+"(UN,Deux));
end P_Proba1;

> program, you have to prefix by the package name that contains the operators : My code.
It causes infinite recursion (dixit compiler), so I didn't understand.


  reply	other threads:[~2018-01-25 13:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 17:03 no + or - defined for fixed point types in Standard, why ? Mehdi Saada
2018-01-24 17:44 ` Robert Eachus
2018-01-24 18:36   ` Mehdi Saada
2018-01-25  1:09     ` Robert Eachus
2018-01-25  1:31       ` guyclaude.burger
2018-01-25  3:07         ` Robert Eachus
2018-01-25  3:25 ` Randy Brukardt
2018-01-25 13:33   ` Mehdi Saada [this message]
2018-01-26  4:34     ` Randy Brukardt
replies disabled

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