How Nested Functions Work, part 1

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu Sep 3 15:59:50 PDT 2009


On Thu, Sep 3, 2009 at 6:48 PM, Edward
Diener<eddielee_no_spam_here at tropicsoft.com> wrote:
> What I imagine will happen in D is that when an updated delegate type allows
> itself to be initialized with a function pointer, the vast majority of D
> programmers will use delegate for all callables and the function pointer
> will remain simply an artefact of the language. Then D can eventually get
> rid of it <g> !

There's no real reason to get rid of function pointers. What type
would the .funcptr property of a delegate be, if function pointers
didn't exist? You also need them for C compatibility.



More information about the Digitalmars-d mailing list