Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3fab4a48bb3119ae22442d05d04d57097a2dba2d
Ticket: 616480ffffffffffffffffffffffffffffffffff
binary command: addition to man page
User & Date: arjenmarkus on 2002-09-30 10:56:34
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I find the binary command very useful for certain
    tasks, yet the description of the command in the man
    page is slightly confusing. Therefore I would like to
    submit some additional text for the man page that, I
    think, will clarify how to use it. (All the information
    is there, but it is spread over the various options,
    the additional text should summarise some aspects).
    
    [binary format]
    After the paragraph starting with "The formatString
    consists of ..."
    a new paragraph:
    
    Here is a small example to clarify the relation between
    the field
    specifiers and the arguments:
    
       binary format d3d {1.0 2.0 3.0 4.0} 0.1
    
    The first argument is a list of four numbers, but
    because of the count
    of 3 for the associated field specifier, only the first
    three will
    be used. The second argument is associated with the
    second field
    specifier. The resulting binary string contains the
    four
    numbers 10, 2.0, 3.0 and 0.1.
    
    
    [binary scan]
    After the paragraph "As with binary format ..."
    
    A similar example as with [binary format] should
    explain the relation
    between field specifiers and arguments in case of the
    binary scan
    subcommand:
    
       binary scan $bytes d3d first second
    
    This command (provided the binary string in "bytes" is
    long enough)
    turns the variable "first" into a list of three numbers
    and it assigns a
    single value to the variable "second".
    
    
    Option "a" in the section on "binary scan": explain why
    variable var2 
    is left unmodified (I could not quite figure it out :-)
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "arjenmarkus"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "binary command: addition to man page"
  11. type changed to: "Patch"