Re: another newbie question
- Posted by "Brian K. Broker" <bkb at CNW.COM> Aug 30, 1999
- 372 views
> > 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) That follows from the above comment... > but the colors are not displaying the same, and i wonder if that is a bug > in the colorizer or the trace parser? Can't help you here (not sure if I follow). Rob? >So how do i specify to print the 2nd nested sequence? printf(1, "%s\n", { thisseq[nest2] } ) -- derived from your previous example -- -- Brian Broker