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

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

Thread Previous | Thread Next
From:
Jonathan Worthington
Date:
September 23, 2005 04:41
Subject:
Re: loadlib and libraries with '.' in the name
Message ID:
008801c5c033$bedfa4c0$0200a8c0@SERVER
"Ross McFarland" <rwmcfa1@neces.com> 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 
me...it'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.

Jonathan 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About