Date: Wed, 30 Jul 2014 04:25:56 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192264] New: [new port] devel/p5-Callback-Frame - Preserve error handlers and "local" variables across callbacks Message-ID: <bug-192264-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192264 Bug ID: 192264 Summary: [new port] devel/p5-Callback-Frame - Preserve error handlers and "local" variables across callbacks Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: bill.brinzer@gmail.com Created attachment 145140 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145140&action=edit p5-Callback-Frame.shar This is a dependency of new port devel/p5-AnyEvent-Task, which I plan to submit shortly. When programming with callbacks in perl, you create anonymous functions with sub { ... }. These functions are especially useful because when they are called they will preserve their surrounding lexical environment.They are essential for convenient and efficient asynchronous programming. For many applications we really like straightforward callback style. The goal of Callback::Frame is to simplify the management of dynamic environments while leaving callback style alone. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192264-13>