[omniORB] Date: Tue, 22 Jun 1999 13:51:26 +0100
Duncan Grisby
dgrisby@uk.research.att.com
Tue, 22 Jun 1999 13:58:21 +0100
On Tuesday 22 June, andrew.brown@bt.com wrote:
> can anyone help with this problem. I've got a class with two
> methods, print(int) and print(float). Obviously having this syntax in c++ is
> not a problem, but when i define my idl an illegal redefinition error. Does
> anyone know how to define two functions with the same name but different
> parameters in the idl ??
IDL does not permit this. If it did, it would be extremely difficult
to map to languages like C which do not support polymorphic functions.
You should declare different operation names like print_int() and
print_float().
HTH,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --