Re: "Polymorphic" in OSL manual


Larry Gritz <l...@...>
 

I believe you are correct. Polymorphism should refer to types, what I was talking about is really "overloading."

-- lg


On Feb 1, 2010, at 10:46 AM, Blair Zajac wrote:

Hey guys,

Reading through the OSL manual, on page 20 there's this paragraph:

"""Functions may be polymorphic. That is, multiple functions may be
defined to have the same name, as long as they have differently-typed
parameters, so that when the function is called the list of arguments
can disambiguate which version of the function is desired."""

In C++ terminology, do you mean overloaded? Polymorphic to me means
that the function takes a type parameter, or is a templated function.

Regards,
Blair

--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To post to this group, send email to osl...@....
To unsubscribe from this group, send email to osl...@....
For more options, visit this group at http://groups.google.com/group/osl-dev?hl=en.

--
Larry Gritz
l...@...

Join {osl-dev@lists.aswf.io to automatically receive all group messages.