Java Type declarations for NetRexx

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

Java Type declarations for NetRexx

Marc Remes-2
Does anyone has any idea if Java Type declarations can be implemented in current NetRexx?
In other words, how would one write the following in NetRexx?

Vector<String> strings = new Vector<String>(10);

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Java Type declarations for NetRexx

Rony G. Flatscher (wu-wien)


On 18.01.2012 18:50, Marc Remes wrote:
> Does anyone has any idea if Java Type declarations can be implemented in current NetRexx?
> In other words, how would one write the following in NetRexx?
>
> Vector<String> strings = new Vector<String>(10);
Probably: just leave out the generics qualifier (the Java compiler does a signature erasure when
producing the byte code.) as if the code read:

   Vector strings=new Vector(10);

---rony

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Java Type declarations for NetRexx

ThSITC
In reply to this post by Marc Remes-2
Yes, it could be implemented.
But, due to the NetRexx Language Board decisions, we will have to agree
for the SYNTAX and SEMANTICS first in writtern form.

I already raised an issue on the developers group at KENAI (project
NetRexx) as one of the *most hardly* needed expansions
to NetRexx 3.02

We should target this for NetRexx release 4.00.

I would be able to work at this (a bit) after my current releases.

Thomas.
==================================================================
Am 18.01.2012 18:50, schrieb Marc Remes:

> Does anyone has any idea if Java Type declarations can be implemented
> in current NetRexx?
> In other words, how would one write the following in NetRexx?
>
> Vector<String> strings = new Vector<String>(10);
>
> Marc
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Java Type declarations for NetRexx

ThSITC
In reply to this post by Rony G. Flatscher (wu-wien)
All:
   ... please keep in mind that the *current NetRexx syntax* would be:

    strings=Vector(10)

I personally would propose a syntax of:

    strings=String Vector(10)

but we shall discuss this before any implementation.
Thomas.
=====================================================

Am 18.01.2012 19:20, schrieb Rony G. Flatscher:

>
> On 18.01.2012 18:50, Marc Remes wrote:
>> Does anyone has any idea if Java Type declarations can be implemented in current NetRexx?
>> In other words, how would one write the following in NetRexx?
>>
>> Vector<String>  strings = new Vector<String>(10);
> Probably: just leave out the generics qualifier (the Java compiler does a signature erasure when
> producing the byte code.) as if the code read:
>
>     Vector strings=new Vector(10);
>
> ---rony
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com