You can do it as a private, but you have to pass in the operations. Attached is an example of what I'm talking about. Is this what you're after? Frank -----Original Message----- From: Michael Andersson [mailto:a98mican@ida.his.se] Hi! How do I specify that the generic parameter is a integer or a float. I know that you can use type T is range <> to specify that T is any Integer-type and that you can use type T is digit <> to specify that T is any type of float. But how can I use both at the same time? I've tried to use type T is private but then I can't use any of the +,-,*,/ operators. Need your help, please! /Michael Andersson _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada