Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6b481e0f49d6cfaa1713fe1a7cd05e73011c03d9
Ticket: 1771726fffffffffffffffffffffffffffffffff
Forced Variable Types
User & Date: deusued on 2007-08-10 14:58:12
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    As a loyal and devout Tcl professional (7+ years), I have come across a situation where I would really -love- to be able to force a variable type, or cast it, as a single type.
    
    While this may incur overhead, I would like to believe that it could be implemented in such a manner that both execution speed would be significantly faster (no casting required if a specific bit is set on the variable) and potentially reducing the memory overhead necessary to cast (I'm out of water here, though).
    
    ex:
    %set -double myDouble 1.002
    %lappend myDouble 2
     /error thrown, much like passing an array in as the first arg/
    %set -string myString "1.01"
    %expr $myString + 2.01
     /error thrown, much like passing {} in/
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "deusued"
  10. subsystem changed to: "07. Variables"
  11. title changed to: "Forced Variable Types"
  12. type changed to: "RFE"