Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d14d92bf10caebf3ee1243c07380fd230a6cbc04
Ticket: 787960ffffffffffffffffffffffffffffffffff
read all-or-nothing option
User & Date: andreas_kupries on 2006-03-17 06:05:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    While I like the idea of [read -xxx 8] for xxx the name of
    the option, I am not sure that I understand the need for an
    additional option -yyy for the granularity. I want the
    8-byte integer, I say [read -xxx 8] ... Ah. Wait. you might
    wish to read an array of 8-byte integer, eh ? Say, 10 of them.
    
    And instead of writing [read -xxx 80], or even [read -xxx
    [expr {10*8}]] (well, with appropriate variables, you (dkf)
    are thinking about [read -xxx -yyy 8 10]. And the default
    for -yyy is 1, i.e. bytes.
    
    In this context [read -all-or-nothing -size 8 10].
    
    Ok.
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"