Board index » delphi » Polymorphism ? how to do like ReadLn(F[,V])

Polymorphism ? how to do like ReadLn(F[,V])

I thought polymorphism could be used to define same named
procedures/functions/methods  with different names/types of
parameters.
ReadLn() does something like that, it can receive variable number of
parameters with different types.

Does anybody know how I could do the same as ReadLn() ?

Thanks

---------------
Vincent MORELLE
b...@calva.net
---------------
http://www.iap.fr/saf (Socit Astronomique de France)

 

Re:Polymorphism ? how to do like ReadLn(F[,V])


Quote
b...@calvanet.calvacom.fr (Vincent Morelle) wrote:
>I thought polymorphism could be used to define same named
>procedures/functions/methods  with different names/types of
>parameters.

I don't think that's the idea of polymorphism.

Quote
>ReadLn() does something like that, it can receive variable number of
>parameters with different types.
>Does anybody know how I could do the same as ReadLn() ?

You can acheive similar things with open-array parameters.

--
Bob Cousins, Software Engineer.
http://www.demon.co.uk/sirius-{*word*104}netics/

Other Threads