Re: [JIRA] Commented: (NETREXX-48) The implicit conversion from Java Strings to Rexx Strings sometime fails

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

Re: [JIRA] Commented: (NETREXX-48) The implicit conversion from Java Strings to Rexx Strings sometime fails

ThSITC
Hello Kermit,

(*and* all)

I did get this error while changing my source to:

OPTION BINARY

I do propose (herewith) a new OPTION COMPATIBLE

which, when used, should SURROUND any and all instances of former
Rexx Variables (declared whatsoever) by the Rexx constructor.

The options would be in the MIDDLE of Rexx (NetRexx) *and BINARY*

It will, course, need the Rexx Class to be loaded.

I'm *not* sure whether w should call this COMPILER/INTERPRETER
option COMPATIBLE.

But it might introduce a third level (between Rexx and Binary) , which
is needed  (as I think so)!

Thomas Schneider.

itAm 24.09.2011 04:56, schrieb Kermit Kiser (JIRA):

>      [ http://kenai.com/jira/browse/NETREXX-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58462#action_58462 ]
>
> Kermit Kiser commented on NETREXX-48:
> -------------------------------------
>
> This is a user error. The field referenced is clearly defined as a Java String array:
>
> s_nest = String[m_level]
>
> You cannot invoke the methods of a Rexx object (such as left) on a String object as stated in the reported error message:
>
>   224 +++       enest = Structs.s_nest[is].left(8)
>       +++                                  ^^^^
>       +++ Error: The method 'left(byte)' cannot be found in class 'java.lang.String' or a superclass
>
> The user needs to convert the Java String to a Rexx object if he wants to use the Rexx object methods:
>
> enest = Rexx(Structs.s_nest[is]).left(8)
>
>> The implicit conversion from Java Strings to Rexx Strings sometime fails
>> ------------------------------------------------------------------------
>>
>>                  Key: NETREXX-48
>>                  URL: http://kenai.com/jira/browse/NETREXX-48
>>              Project: netrexx
>>           Issue Type: Bug
>>          Environment: NetRexxC 3.01
>>             Reporter: Thomas.Schneider.Wien
>>              Fix For: NetRexxC-3.01
>>
>>          Attachments: NetRexxC.log, Structs.nrx
>>
>>
>> As the attached example shows, the attempted implicit conversion of Strings to Rexx fails.
>> As far as I find out, this is especially the case when the parameter's to a Rexx builtin method
>> are of (Rexx implicit) Type Byte. The attached sample does give evidence.


--
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: [JIRA] Commented: (NETREXX-48) The implicit conversion from Java Strings to Rexx Strings sometime fails

ThSITC
May  I add, plesse

*That*

In my nearly never ending desire to promote *NetRexx * as *The best ever
designed Language I do know (thans, Mike!) * )))))))))))))))))))

.. it is my special *MESSAGE TO YOU ALL*!


Do you know, that, meanwhile. you can translate COBOL and/or PL/I
to NetRexx???

Massa Thomas. (ACRONYM, *and* personal NICK-NAME)
==========================================================

*m 28.09.2011 20:01, schrieb Thomas Schneider:

> Hello Kermit,
>
> (*and* all)
>
> I did get this error while changing my source to:
>
> OPTION BINARY
>
> I do propose (herewith) a new OPTION COMPATIBLE
>
> which, when used, should SURROUND any and all instances of former
> Rexx Variables (declared whatsoever) by the Rexx constructor.
>
> The options would be in the MIDDLE of Rexx (NetRexx) *and BINARY*
>
> It will, course, need the Rexx Class to be loaded.
>
> I'm *not* sure whether w should call this COMPILER/INTERPRETER
> option COMPATIBLE.
>
> But it might introduce a third level (between Rexx and Binary) , which
> is needed  (as I think so)!
>
> Thomas Schneider.
>
> itAm 24.09.2011 04:56, schrieb Kermit Kiser (JIRA):
>>      [
>> http://kenai.com/jira/browse/NETREXX-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58462#action_58462 
>> ]
>>
>> Kermit Kiser commented on NETREXX-48:
>> -------------------------------------
>>
>> This is a user error. The field referenced is clearly defined as a
>> Java String array:
>>
>> s_nest = String[m_level]
>>
>> You cannot invoke the methods of a Rexx object (such as left) on a
>> String object as stated in the reported error message:
>>
>>   224 +++       enest = Structs.s_nest[is].left(8)
>>       +++                                  ^^^^
>>       +++ Error: The method 'left(byte)' cannot be found in class
>> 'java.lang.String' or a superclass
>>
>> The user needs to convert the Java String to a Rexx object if he
>> wants to use the Rexx object methods:
>>
>> enest = Rexx(Structs.s_nest[is]).left(8)
>>
>>> The implicit conversion from Java Strings to Rexx Strings sometime
>>> fails
>>> ------------------------------------------------------------------------
>>>
>>>
>>>                  Key: NETREXX-48
>>>                  URL: http://kenai.com/jira/browse/NETREXX-48
>>>              Project: netrexx
>>>           Issue Type: Bug
>>>          Environment: NetRexxC 3.01
>>>             Reporter: Thomas.Schneider.Wien
>>>              Fix For: NetRexxC-3.01
>>>
>>>          Attachments: NetRexxC.log, Structs.nrx
>>>
>>>
>>> As the attached example shows, the attempted implicit conversion of
>>> Strings to Rexx fails.
>>> As far as I find out, this is especially the case when the
>>> parameter's to a Rexx builtin method
>>> are of (Rexx implicit) Type Byte. The attached sample does give
>>> evidence.
>
>


--
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