From: RichardOnRails Date: 2009-04-05T00:24:27+09:00 Subject: Re: Got some syntax error I can't spot. Can you (I hope)? On Apr 4, 2:20 am, Bill Kelly wrote: > From: "RichardOnRails" > > > > > I pulled my problem code from my app into a test onhttp://www.pastie.org/436616. > > > Lines 13-19 are the problem code in my app. > > > Lines preceding them I set up needed definitions and test individual > > components of the problematic code. > > > The final lines display the error lines 13-19 produce.  Can you see > > what the problem is? > > Precedence problem with + and % apparently.  This works: > > puts(("Considering saving the trade-group"   + >   "\tfor symbol \"%s\", "+ >   "\tgroup size: %d, " + >   "\tand # groups saved thus far: " + >       "open(%d), " + >       "completed(%d)") % >       [savedSymbol, tradeGroup.size, openTrades.size, completedTrades.size]) > > Regards, > > Bill Hi Bill, Many thanks for your solution. It looks like you posted your response about 15 minutes after I posted my question. I posted my Eureka moment about an hour after I posted my question, though it seemed to me to have been much sooner than that, so I never checked to see whether anyone had posted a response. So I don't know which to be happier about. That my brain began functioning again, of that this newsgroup is attended by such wonderful people like you and Martin. Again, thank you and Best wishes, Richard