On Monday 07 December 2009 at 06:04, Patrick R wrote: > On Mon, Dec 07, 2009 at 01:20:17AM -0800, chromatic wrote:
> > It might be useful to extend the initializer to take a PMC array as well, when > > the EH can handle multiple types of exceptions, but most of the uses I've seen > > in NQP-rx so far handle only one type of exception. > Most of the uses are indeed for only one type of exception; however > looping constructs (for/while/until/repeat) all create exception > handlers that catch multiple exceptions, and those are fairly common. I can extend it to allow an array-ish PMC as well; that's easy. You could create one as a .const PMC and use it for the initialization. (The cache sounds like a decent short term optimization, but I'd rather fix PBC and :immediate in the long term.) -- c _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
