comp.lang.ada
 help / color / mirror / Atom feed
* Re: Overloaded Operators, Universal_Floats, and implicit conversions
@ 1996-02-21  0:00 Xiangmix Wang
  0 siblings, 0 replies; only message in thread
From: Xiangmix Wang @ 1996-02-21  0:00 UTC (permalink / raw)


The original message is not that clear. But I think, the problem is the 
compiler can not resolve teh overloaded symbol "/" to the unique operotor.
After yuou declare your ouwn operator "/", you have two profiles,

   FEET, FEET -> FEET
   FEET, FLOAT -> FEET

When 2.0 is used for teh second parameter, teh compiler does not know
which type it should convert 2.0 to.

You can tell whether this is true from teh compiler produced message.

: BTW, declaring your own floating point types by means of "digits" is 
: far better practise than to derive from float.

I agree.

xwang






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-02-21  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-02-21  0:00 Overloaded Operators, Universal_Floats, and implicit conversions Xiangmix Wang

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