Artifacts Associated With Ticket 218318
Ticket change [a2cb16784a] (rid 109952) by nobody on 2000-10-26 00:56:06:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "final: 8.0.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "56. LibTomMath"
- title initialized to: "package ifneeded does not function"
- type initialized to: "Bug"
Ticket change [8607635aaa] (rid 131433) by welch on 2000-10-26 08:19:00:
- closedate changed to: "2000-10-26T01:19:00"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [b8434975be] (rid 128941) by dgp on 2001-04-06 02:15:23:
- closedate changed to: "2001-04-05T19:15:23"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- subsystem changed to: "39. Package Manager"