Re: another newbie question
- Posted by Kat <KSMiTH at PELL.NET> Aug 30, 1999
- 383 views
----- Original Message ----- From: Brian K. Broker <bkb at CNW.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Monday, August 30, 1999 1:42 AM Subject: Re: another newbie question > On Sunday, August 29, 1999 9:10 PM Kat said: > > > > In the following code: > > > > while ( sequence(thisseq[nest1]) ) do > > printf(1,"%s\n",thisseq[nest1]) > > > > the exw trace screen colors the brackets around the "nest1" in the first > > line, but doesn't color them in the second line. And i wanted the whole > > nested sequence printed as it is shown in the blue screen at the bottom of > > the trace screen, i didn't want the first char of the first nested > sequence. > > What is it i am not understanding here? > > > > Kat, > > perplexed again. > > In the reference manual for printf you will find the following: > > Comments: Watch out for the following common mistake: > name="John Smith" > printf(1, "%s", name) -- error! > > > This will print only the first character, J, of name, as each element of > name is taken to be a separate value to be formatted. You must say this > instead: > name="John Smith" > printf(1, "%s", {name}) -- correct Actually, this print line prints the first nested sequence of the sequence: printf(1,"%s\n",thisseq) but the colors are not displaying the same, and i wonder if that is a bug in the colorizer or the trace parser? So how do i specify to print the 2nd nested sequence? Kat, still perplexed.