From: Dale Stanbrough <dstanbro@bigpond.net.au>
Subject: Reemergence of predefined equality operator...
Date: Wed, 31 Jul 2002 22:25:42 GMT
Date: 2002-07-31T22:25:42+00:00 [thread overview]
Message-ID: <dstanbro-DB04BE.08254201082002@news-server.bigpond.net.au> (raw)
I was demonstrating what i thought would be the reemergence of
the predefined equality operator by doing...
type text is... (record with length & chars, like bounded string)
function "=" (a, b : text) return boolean;
and
generic
type element is private;
with function "=" (a, b : element) return boolean is <>;
package...
and after instantiating the generic with type text it kept calling
the "=" defined for type text.
I thought Ada (through a bad design decision) said that it should call
the predefined "=" opertor in this instance. Has this been changed,
or do have I misunderstood the problem?
Dale
next reply other threads:[~2002-07-31 22:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-31 22:25 Dale Stanbrough [this message]
2002-07-31 22:47 ` Reemergence of predefined equality operator Robert A Duff
2002-08-01 1:30 ` Vincent Marciante
2002-08-01 12:06 ` Robert Dewar
2002-08-25 17:46 ` Vincent Marciante
2002-08-25 22:04 ` Robert A Duff
2002-08-01 11:14 ` Dale Stanbrough
2002-08-01 14:48 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox