How to know whether to use function or delegate

Reiner Pope reiner.pope at gmail.com
Sun Jul 16 23:23:54 PDT 2006


When making a program with a callback, how do you decide whether to use 
a function or a delegate? E.g,

   void foo(void function(int) consume)
   { ... }

or

   void foo(void delegate(int) consume)
   { ... }



More information about the Digitalmars-d-learn mailing list