[Xmonad] darcs patch: fix potential hole in userCode.
droundy at darcs.net
Fri Oct 12 11:33:38 EDT 2007
On Fri, Oct 12, 2007 at 10:11:13AM -0500, Spencer Janssen wrote:
> On Friday 12 October 2007 10:03:52 David Roundy wrote:
> > Fri Oct 12 11:02:53 EDT 2007 David Roundy <droundy at darcs.net>
> > * fix potential hole in userCode.
> > This makes userCode catch errors even when the
> > user does something like (return undefined).
I was thinking that we might get a little more benefit from adding just a
tad of strictness to catchX itself. It could call seq on the return value
to catch at least the grossest errors that might be hidden in lazy values.
That still wouldn't obsolete this change to userCode, since the advantage
when we've got a () return value is that we can safely ignore it and keep
any changes that might have been made.
Department of Physics
Oregon State University
More information about the Xmonad