develooper Front page | perl.perl6.internals | Postings from September 2005

Re: loadlib and libraries with '.' in the name

Thread Previous | Thread Next
Ross McFarland
September 23, 2005 00:10
Re: loadlib and libraries with '.' in the name
Message ID:

On Sep 23, 2005, at 12:00 AM, chromatic wrote:

> On Thu, 2005-09-22 at 23:43 -0700, Ross McFarland wrote:
>> cross platform it would be tough b/c you need to know the full path
>> to something you can load.
> Does it help to use libnci_test?  That's what t/pmc/nci.t uses.    
> (It's
> late and I've only skimmed the code right now, so it may not be
> helpful.)

good idea, provided that i can get the full path to it so that i can  
test all of the permuitations it would work.

i have all of the native \  / cases handled. i've got a little bit  
more work to do for handling things coming in as in the opposite \  /  
than the system we're running on. there's also a really hacky win32  
thing tacked on the end that removes the lib from the front, but it  
would only work for cases without a path. i can do the same, but  
that's pretty broken as is and it would seem you'd need to do the  
opposite if the lib was specified in win32 speak and you're running  
on unix-y system. there's a fixme comment saying that stuff probably  
belongs in somewhere else and i might look in to that, but i'll  
probably stick to reproducing the current behavior first.

bed time for now, i'll get back to this tomorrow.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About