Skip to content
Tcl Source Code History Of Ticket 218318
Login

History Of Ticket 218318

Artifacts Associated With Ticket 218318

  1. Ticket change [a2cb16784a] (rid 109952) by nobody on 2000-10-26 00:56:06:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3796 Bug
      Version: 1.2
      SubmitDate: '1999-12-07'
      LastModified: '1999-12-07'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      FixedDate: '2000-10-25'
      ClosedDate: '1999-12-07'
      
      
      Name:
      Chia-Wei Chow
      
      ReproducibleScript:
      i have 3 packages in /tmp/lib each as a pkgIndex.tcl file in it
      
      cat /tmp/lib/a1.0/pkgIndex.tcl
      package ifneeded A 1.0 [list
              puts "hello from A!"
              package provide A 1.0 ]
      
      cat /tmp/lib/b1.0/pkgIndex.tcl
      package ifneeded B 1.0 [list
              puts "hello from B!"
              package provide B 1.0 ]
      
      cat /tmp/lib/c1.0/pkgIndex.tcl
      package ifneeded C 1.0 [list
              puts "hello from C!"
              package provide C 1.0 ]
      
      here's my main tcl script file:
      
      lappend auto_path /tmp/lib
      puts [package require A]
      
      
      when i run "protclsh80 mine.tcl", here's what i got
      hello from B!
      hello from C!
      hello from A!
      1.0
      
      ObservedBehavior:
      i didn't expect to see
      hello from B!
      hello from C!
      
      DesiredBehavior:
      i would expect getting
      hello from A!
      1.0
      
      
      
      When it runs through finding an unknown package, it will source
      all the found pkgIndex.tcl files, so it doesn't have to do it
      again later (unless auto_path changes).  Thus, all the files
      will get evaluated, then it will look to see if 'A' is defined. 
      -- 12/07/1999 hobbs
      
    4. foundin initialized to: "final: 8.0.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "56. LibTomMath"
    10. title initialized to: "package ifneeded does not function"
    11. type initialized to: "Bug"
  2. Ticket change [8607635aaa] (rid 131433) by welch on 2000-10-26 08:19:00:

    1. closedate changed to: "2000-10-26T01:19:00"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [b8434975be] (rid 128941) by dgp on 2001-04-06 02:15:23:

    1. closedate changed to: "2001-04-05T19:15:23"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "39. Package Manager"