On Sun, 2003-06-01 at 11:05, Nicholas Clark wrote: > Independent of the arguments about whether this is viable, I think that it > would be bad to stomp over innocent packages' namespaces. > Instead, how about a hash in PAR's namespace keyed by package name. > Er, file name. There's the problem. More than one package can be in a file, > and a package can be declared across more than one file. > Agreed - I hadn't thought that through enough.
> Can you get the information you need via caller()? You will need to cheat and > do this by calling another function inside your package, as you can't use > caller to get your own file name, only your caller's file name. > Thanks for the quick response. I can check caller, but the results are kinda obscure - the only difference that I see in the caller() list is files that are loaded with PAR are prefixed by loader/[ref] - I'd rather not rely on a string like that to determine whether we are in a PAR archive, plus it doesn't tell me which archive we are in. Maybe I could use something like that in conjunction with a list in PAR's namespace though... Thanks, -- Nathan Byrd <[EMAIL PROTECTED]>
