Version REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014 Windows 7
/----------------------------------------------------------------------
a=1
2a=2
b=invalid: B
12 - Say '2b='||(2b)
Error 41 running D:\tinybug.rex line 12: Bad arithmetic conversion
Error 41.1: Nonnumeric value ("a TINYINT") used in arithmetic operation
expected: Nonnumeric value ("invalid: B") used in arithmetic operation
---------------------------------------------------------------------*/
Anonymous
In the context of an error message, reporting the type of object found there is a more appropriate (and useful) response.
If you say so...
But if the object has a string value that might convey more meaning!
Anyway, the message description talks of "value"
Last edit: Walter 2014-06-22
You can still achieve that by setting an objectName for the object instance. This is a less dynamic form that causes fewer problems during error reporting. Add this line to the
end of your init method:
self~objectName = v
I added that line but can't see an effect :-(
rexx tinybug3 2>3.txt
14 - Say '2b='||(2b)
Error 41 running D:\tinybug3.rex line 14: Bad arithmetic conversion
Error 41.1: Nonnumeric value ("invalid: B") used in arithmetic operation
The message now has the value you set ("invalid: B") rather than the
original "a TINYOBJ", which is what you were complaining about. How can
you say it did not have any effect?
On Sun, Jun 22, 2014 at 2:11 PM, Walter walter-pachl@users.sf.net wrote:
Related
Bugs:
#1269View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
sorry. overlooked. thanks. Walter
Oops.
Old and blind:
Walter
Thank you and have a good week!!!
Walter
Von: Rick McGuire [mailto:bigrixx@users.sf.net]
Gesendet: Sonntag, 22. Juni 2014 21:14
An: [oorexx:bugs]
Betreff: [oorexx:bugs] Re: #1269 Unexpected content of syntax error message
The message now has the value you set ("invalid: B") rather than the
original "a TINYOBJ", which is what you were complaining about. How can
you say it did not have any effect?
On Sun, Jun 22, 2014 at 2:11 PM, Walter walter-pachl@users.sf.net
walter-pachl@users.sf.net wrote:
I added that line but can't see an effect :-(
rexx tinybug3 2>3.txt
14 - Say '2b='||(2b)
Error 41 running D:\tinybug3.rex line 14: Bad arithmetic conversion
Error 41.1: Nonnumeric value ("invalid: B") used in arithmetic operation
Attachment: tinybug3.rex (894 Bytes; text/x-rexx)
[bugs:#1269] http://sourceforge.net/p/oorexx/bugs/1269/ Unexpected
content of syntax error message
Status: wont-fix
Group: None
Created: Fri Jun 20, 2014 05:41 PM UTC by Walter
Last Updated: Sun Jun 22, 2014 12:03 PM UTC
Owner: Rick McGuire
Version REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014 Windows 7
/----------------------------------------------------------------------
a=1
2a=2
b=invalid: B
12 - Say '2b='||(2b)
Error 41 running D:\tinybug.rex line 12: Bad arithmetic conversion
Error 41.1: Nonnumeric value ("a TINYINT") used in arithmetic operation
expected: Nonnumeric value ("invalid: B") used in arithmetic operation
---------------------------------------------------------------------*/
Sent from sourceforge.net because you indicated interest in <
https://sourceforge.net/p/oorexx/bugs/1269/>
To unsubscribe from further messages, please visit <
https://sourceforge.net/auth/subscriptions/
https://sourceforge.net/auth/subscript-disabledions/ >
[bugs:#1269] http://sourceforge.net/p/oorexx/bugs/1269/ Unexpected
content of syntax error message
Status: wont-fix
Group: None
Created: Fri Jun 20, 2014 05:41 PM UTC by Walter
Last Updated: Sun Jun 22, 2014 06:11 PM UTC
Owner: Rick McGuire
Version REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014 Windows 7
/----------------------------------------------------------------------
a=1
2a=2
b=invalid: B
12 - Say '2b='||(2b)
Error 41 running D:\tinybug.rex line 12: Bad arithmetic conversion
Error 41.1: Nonnumeric value ("a TINYINT") used in arithmetic operation
expected: Nonnumeric value ("invalid: B") used in arithmetic operation
---------------------------------------------------------------------*/
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/oorexx/bugs/1269/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
https://sourceforge.net/auth/subscript-disabledions/
Related
Bugs:
#1269Afterthought:
Of course, I have to add that line also to a possible set method
::method set_value
Expose v
Use Arg x
v=x
self~objectName = v -- Rick's advice
or any other method that changes the value.
But isn't that just redundancy?
What speaks really against using the string value as suggested in the first place??
If it were me, I'd add the self~objectName = v to the init method (or create an init method with that line) so the object has a name from the beginning.