Re: [Snowball-discuss] Java version

From: James Aylett (james-xapian@tartarus.org)
Date: Wed Dec 05 2001 - 18:02:17 GMT


On Wed, Dec 05, 2001 at 10:38:57AM -0700, Martin Porter wrote:

> The problem surely is finding another way of doing the goto's. I
> suggested to Richard using exceptions - I hope that idea isn't just
> nonsense.

That will have a performance hit unless it's genuinely an exceptional
case. (Well, it'll have a hit then anyway, but that's not the point.)

Anyone implementing this should look into labelled breaks, which
can be used more safely than goto in many of the same situations. Not
having looked at the Snowball code generator, I can't be certain this
will solve all uses of goto, but unless Snowball is outputting really
hideous code it should do :-)

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                            zap.tartarus.org
  james@tartarus.org                                    www.footlights.org

_______________________________________________ Snowball-discuss mailing list Snowball-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/snowball-discuss

_____________________________________________________________________ VirusChecked by the Incepta Group plc _____________________________________________________________________



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:40 BST