[brailleblaster] Re: [brailleblaster.newdesign] push by john.bo...@xxxxxxxxxxxxxxxxx - work on Styles class on 2013-01-15 12:41 GMT

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Thu, 17 Jan 2013 18:34:43 +0000

Sorry for not getting back on this earlier, but I don't understand why some of this change happend.


-SemanticEntry[] semanticsTable = new SemanticEntry[100];
+static SemanticEntry[] semanticsTable = new SemanticEntry[100];

So why is semanticsTable static? I would have thought it was a prime example of an instance variable, the table is only relevant for that instance, which according to an earlier comment is for a given document. Why should the table of semantic actions be common to all instances, and so if I understand the earlier comment will be shared for all documents?

Michael Whapples

Other related posts: