POV-Ray : Newsgroups : povray.off-topic : Smart little programming tricks, where to find ? : Re: Smart little programming tricks, where to find ? Server Time
10 Oct 2024 23:19:28 EDT (-0400)
  Re: Smart little programming tricks, where to find ?  
From: Darren New
Date: 21 Mar 2008 12:02:29
Message: <47e3ea25$1@news.povray.org>
Mike Raiford wrote:
> Darren New wrote:
> 
>>>    // This will call DoStuff (In C# pfunc would be called a "delegate")
>>
>> No it wouldn't.
>>
> 
> Aside from multicast delegates, Doesn't a delegate act similar to a 
> function pointer?

Only if you disregard that they're multicast and object-oriented and can 
be targets of events.  I'll grant you that "delegate" is as close as C# 
has to the concept of "pointer to function". :)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

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