www.digitalmars.com         C & C++   DMDScript  

D - delegate <=> fp conversion possible?

reply Helmut Leitner <helmut.leitner chello.at> writes:
Is there any way to either
  - convert a delegate to a function pointer
or 
  - convert a function pointer to a delegate

I'm currently working on a benchmarking module which contains
redundant code for measuring functions und delegates separately
which I want to get rid of.

--
Helmut Leitner    leitner hls.via.at   
Graz, Austria   www.hls-software.com
Apr 06 2003
parent "Walter" <walter digitalmars.com> writes:
Currently, no. There will be in the future, though.

"Helmut Leitner" <helmut.leitner chello.at> wrote in message
news:3E90919C.6E7BD8FE chello.at...
 Is there any way to either
   - convert a delegate to a function pointer
 or
   - convert a function pointer to a delegate

 I'm currently working on a benchmarking module which contains
 redundant code for measuring functions und delegates separately
 which I want to get rid of.

 --
 Helmut Leitner    leitner hls.via.at
 Graz, Austria   www.hls-software.com
Apr 06 2003