From: Andreas K. <and...@ac...> - 2010-05-17 15:11:24
|
Larry W. Virden wrote: > I was just processing the latest tcllib cvs head from the activestate > ftp site. I noticed the following: > > followed by more words > > I took a look at the file in the module/tepam directory and I'm > perplexed at why these are going to stdout (or perhaps it is stderr). > I don't know all the formatting tags, so I may be missing something. The tepam documentation files contains some 'macro definitions' based on Tcl's 'proc' command, and their bodies contain 'puts'. During their execution as part of the documentation processing they print to stdout. Strictly speaking 'proc' is not part of the doctools language. It works only because the doctools commands are interpreted as Tcl commands, run through a safe interp. Meaning that you can use most Tcl commands, not just the doctools markup commands, in your docs. This is not documented however, and an internal 'feature' of the implementation. In other words, this can go away any time. Fact of the matter, for doctools::idx and doctools::toc this has gone away in the 2.x code I have written. For doctools itself it still works just because I haven't done its v2 yet. > Is this output expected from doctools? If not, does someone see what is No. > missing? If it is expected, I'm puzzled why these terms are being output > and other terms, which appear to be coded similarly in the same file, > are not being output. > > Thanks for insights. -- Sincerely, Andreas Kupries <an...@ac...> Developer @ <http://www.activestate.com/> |