IMPORTING jar-files with the NetRexx import statement

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

IMPORTING jar-files with the NetRexx import statement

Thomas.Schneider.Wien
Wouldn't it be nice when we could enhance the NetRexx import statement
(directive) to be
able to directly refer to a jar file, ie.

import org.NetRexx.Rey.ReyR.jar   -- import all classes fo the jar

*and/or*

import org.NetRexx.Rey.ReR.jar/ReyRand.class  -- import the 'Random
functions' only
??

This would bypass the need to update the classpath for each jar-File you
are using,
and might be also used to DOWNLOAD this jar file on request from the URL
inducated.


What do you think ?
Thomas.

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)
Reply | Threaded
Open this post in threaded view
|

Re: IMPORTING jar-files with the NetRexx import statement

alansam
No!  This makes no sense; the language shouldn't be aware of JAR files, that's an implementation detail which should be hidden from the program.  The import statement is for importing classes and/or packages and it does this quite well.

Alan.

On 18 March 2010 09:10, Thomas Schneider <[hidden email]> wrote:
Wouldn't it be nice when we could enhance the NetRexx import statement (directive) to be
able to directly refer to a jar file, ie.

import org.NetRexx.Rey.ReyR.jar   -- import all classes fo the jar

*and/or*

import org.NetRexx.Rey.ReR.jar/ReyRand.class  -- import the 'Random functions' only
??

This would bypass the need to update the classpath for each jar-File you are using,
and might be also used to DOWNLOAD this jar file on request from the URL inducated.


What do you think ?
Thomas.

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




--
Needs more cow-bell!

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Alan

--
Needs more cowbell.
Reply | Threaded
Open this post in threaded view
|

RE: IMPORTING jar-files with the NetRexx import statement

Mike Cowlishaw
In reply to this post by Thomas.Schneider.Wien
 

> Wouldn't it be nice when we could enhance the NetRexx import statement
> (directive) to be
> able to directly refer to a jar file, ie.
>
> import org.NetRexx.Rey.ReyR.jar   -- import all classes fo the jar
>
> *and/or*
>
> import org.NetRexx.Rey.ReR.jar/ReyRand.class  -- import the
> 'Random functions' only ??
>
> This would bypass the need to update the classpath for each
> jar-File you are using, and might be also used to DOWNLOAD
> this jar file on request from the URL inducated.
>
>
> What do you think ?

You have now made your program dependent on specific naming conventions,
extension conventions, and file system conventions that Java (by
definition, almost) strives to avoid.  

_______________________________________________
Ibm-netrexx mailing list
[hidden email]