comp.lang.ada
 help / color / mirror / Atom feed
* Reemergence of predefined equality operator...
@ 2002-07-31 22:25 Dale Stanbrough
  2002-07-31 22:47 ` Robert A Duff
  0 siblings, 1 reply; 8+ messages in thread
From: Dale Stanbrough @ 2002-07-31 22:25 UTC (permalink / 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



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

end of thread, other threads:[~2002-08-25 22:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 22:25 Reemergence of predefined equality operator Dale Stanbrough
2002-07-31 22:47 ` 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

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