Re: another newbie question

new topic     » goto parent     » topic index » view thread      » older message » newer message

> > 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu