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

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

Thread Previous | Thread Next
Jonathan Worthington
September 23, 2005 04:41
Re: loadlib and libraries with '.' in the name
Message ID:
"Ross McFarland" <> wrote:
> 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.
Taking the "lib" off the start on Win32 always felt a little hacky to's certainly not a hard and fast rule but does apply in some cases. 
I guess it's a last-ditch effort - that whole chunk of code feels very 
"let's try everything we can possibly think of".  I think it's worth 
remembering that NCI = *Native* Calling Interface, so by using it you are 
inherently doing something platform specific anyway.  We can only hide away 
platform differences so far...the question is how far should we go.


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