comp.lang.ada
 help / color / mirror / Atom feed
From: xwang@site.gmu.edu (Xiangmix Wang)
Subject: Re: Overloaded Operators, Universal_Floats, and implicit conversions
Date: 1996/02/21
Date: 1996-02-21T00:00:00+00:00	[thread overview]
Message-ID: <4gfmgd$l6u@portal.gmu.edu> (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






                 reply	other threads:[~1996-02-21  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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