From: Ross Bamford Date: 2006-05-05T23:03:19+09:00 Subject: Re: [QUIZ] Bracket Packing (#78) On Fri, 2006-05-05 at 22:18 +0900, Gautam Dey wrote: > Have a question, > > is each bracket always packaged individually? > For example : [(BB)] is this an error, should it be [(B)(B)]? > Hmm... How about this: [(BB)] isn't an error, but [(B)(B)] is better. As long as you get a sensible (i.e. balanced) set of brackets, the packer won't complain but a layer of soft wrap between each bracket saves money on returns... > The other question is: the program always return the correct number > of B just messes up the packaging? > For example: {}B} or {}{B}? So these should be corrected to {B}, and > not {B}{B}. > Yes. Adding brackets isn't an option (they wouldn't actually be on the line going into the packer if you did :)). Btw. In practice I don't think it's possible to correctly fix every possible breakage, but you can always fail for those that won't fix. -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk