POV-Ray : Newsgroups : povray.off-topic : C# 4.0 Default parameters : Re: C# 4.0 Default parameters Server Time
6 Sep 2024 13:16:46 EDT (-0400)
  Re: C# 4.0 Default parameters  
From: Darren New
Date: 4 Feb 2009 19:09:25
Message: <498a2e35$1@news.povray.org>
Warp wrote:
>   What if you want to call the function (through the pointer) for different
> objects?

I can't think of a convenient way offhand to do this in C#. I think here 
you'd likely fall back to a fixed-named function and then subclass objects 
(or inherit from interfaces) to do that.

I never found the need to orthogonally specify a function and an object to 
call it on, altho I imagine it might come up sometimes.

-- 
   Darren New, San Diego CA, USA (PST)
   "Ouch ouch ouch!"
   "What's wrong? Noodles too hot?"
   "No, I have Chopstick Tunnel Syndrome."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.