[omniORB] Date: Tue, 22 Jun 1999 13:51:26 +0100

b.keeping@ic.ac.uk b.keeping@ic.ac.uk
Tue, 22 Jun 1999 14:15:31 +0100



Duncan Grisby wrote:

>You should declare different operation names like print_int() and
>print_float().

... or you could be more fancy and have a method that prints an Any...
but I have a nagging doubt that your original C++ class with the two
"print" methods arises from a misguided attempt to create
polymorphism: see for example the discussion in Stroustrup's "The C++
Programming Language", 3rd Edition, pages 308-312.

Ben Keeping
Imperial College