Title


Comments

  1. Asbjørn Heid It's a hangover from C++. In C++Builder, you use the __closure keyword when referring to a method-with-object pointer.

    It's not a true closure, no, although I suppose you can argue it captures one bit of state. Just habit / language wires getting crossed. I was referring to the model of using event handlers - that is, method pointers also carrying the object instance info with them - for specialisation.

    ReplyDelete
  2. David Millington Ah ok yeah not really a closure but not a plain function pointer either.

    It's a bit like how you can do OO in C... yea you can do much of the same but without the compiler support and such it isn't really OO.

    ReplyDelete
  3. Coincidentally, a discussion of the use of 'closure' referring to method pointers in the comments of this blog post: http://removingalldoubt.com/programming/2015/07/08/the-delphi-event/#disqus_thread

    ReplyDelete

Post a Comment