comp.lang.ada
 help / color / mirror / Atom feed
* Generics crash course
@ 2015-01-16  3:44 John Smith
  2015-01-16  5:14 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Smith @ 2015-01-16  3:44 UTC (permalink / raw)


Hello,

I'm going through the wikibook about Ada.  It has this example when it comes to generics:
http://wikibook-ada.sourceforge.net/html/Algorithms__binary_search__adb.htm

What I don't understand is from lines 12 to 21.  How does this work exactly?  I mean, does this somehow "connect" the overloaded < operator to the Search procedure?

Also, on line 53, if this code is ever reached, then this means that the entire application will stop executing, yes?  The procedure won't just return to the caller.

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

end of thread, other threads:[~2015-01-16  6:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-16  3:44 Generics crash course John Smith
2015-01-16  5:14 ` Jeffrey Carter
2015-01-16  5:33 ` Dirk Heinrichs
2015-01-16  5:43 ` Niklas Holsti
2015-01-16  6:27   ` Jeffrey Carter

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