Or even better,
dllname=: 3 : 0
'' dllname y
:
x=. jpath^:([: >/ '~/' = 2 {. ]) x
select. UNAME
case. 'Win' do. x, y,'.dll'
case. 'Darwin' do. x,'lib',y,'.dylib'
case. do. x,'lib',y,'.so'
end.
)
--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> The following definition could be added to 'dll.ijs'.
> It's useful for addons, too.
>
> dllname=: 3 : 0
> select. UNAME
> case. 'Win' do. y,'.dll'
> case. 'Darwin' do. 'lib',y,'.dylib'
> case. do. 'lib',y,'.so'
> end.
> )
>
> dllname 'jpcre'
> jpcre.dll
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm