• Bug or feature : "namespace import atlmkkernel::*::*"

    From aotto1968@aotto1968@t-online.de to comp.lang.tcl on Tue Jan 7 22:14:59 2025
    From Newsgroup: comp.lang.tcl


    Hi,

    just some code at starter :

    package require atlmkkernel
    namespace import atlmkkernel::MkRuntimeC::*
    namespace import atlmkkernel::*::*

    ends with :

    unknown namespace in import pattern "atlmkkernel::*::*"
    while executing
    "namespace import atlmkkernel::*::*"

    -----------------------------------------

    analysis :

    1) namespace import atlmkkernel::MkRuntimeC::* is valid,

    there is a NS in a NS and the last one has some commands defined

    2) the problem is that are MORE than one NS exists.

    the idea was to use:
    namespace import atlmkkernel::*::*

    to import ALL commands from ALL sub-NS of "atlmkkernel"

    3) the "atlmkkernel" has NO command defined BUT has:

    namespace export "Mk*C"

    a pattern on all "sub-NS" BUT this seems to be NOT supported

    obvious this is NOT working in TCL.
    the problem is now that I can#t import all commands without writing down ALL NS import
    commands individual.

    just an info


    --- Synchronet 3.20a-Linux NewsLink 1.114