Defining event handlers for function, method, or shared method
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jan 26 11:27:13 PST 2016
What a lousy copy+paste mistake that was. I am glad no credit card
number leaked there. :p
On 01/26/2016 11:22 AM, Ali Çehreli wrote:
> class ConcreteEvent(alias onStart, alias onStop, alias onItemAdded) :
> void itemAdded(size_t itemIndex) {
> itemAdded(itemIndex);
> }
That call should have been onItemAdded().
Ali
More information about the Digitalmars-d-learn
mailing list