in reply to Re^5: SDLx handlers and Moose
in thread SDLx handlers and Moose

Ok so with this post and the post above, basically I'm declaring an anonymous sub with the closure (for the callback), and inside the closure I'm saying this is the object and method you need to use/pass args to.

Hoping I've grasped this little bit of wisdom.

Thanks for your help,

Ransom

Replies are listed 'Best First'.
Re^7: SDLx handlers and Moose
by chromatic (Archbishop) on May 29, 2012 at 18:36 UTC

    Exactly. The callback won't remember the object unless you wrap the object up in a closure.