Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

procedure call from package/namespace

Status
Not open for further replies.

jwromine

Programmer
Dec 13, 2007
1
US
This works:
############
lappend auto_path <path to MyPkg>

package require MyPkg

set MyList [::MyPkg::genList]
puts $MyList

But this does not - throws a parent namespace error:
############
lappend auto_path <path to MyPkg>

package require MyPkg


proc lclProc {} {
set MyList [::MyPkg::genList]
puts $MyList
}
lclProc

I'd like to know what I'm doing wrong here
 
It seems wierd. Have you tried:
set MyList [[red]::[/red]::MyPkg::genList]

_________________
Bob Rashkin
 
I'd source first to make sure the file inclusion works then work on debugging the path and package portions.

I've had some problems with improperly written packages that provide pretty much the same symptoms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top