#1269 Unexpected content of syntax error message

None
wont-fix
None
none
1
2014-06-23
2014-06-20
Walter
No

Version REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014 Windows 7

/----------------------------------------------------------------------
a=1
2
a=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
---------------------------------------------------------------------*/

1 Attachments

Related

Bugs: #1269

Discussion

  • Rick McGuire

    Rick McGuire - 2014-06-20
    • status: open --> wont-fix
    • assigned_to: Rick McGuire
     
  • Rick McGuire

    Rick McGuire - 2014-06-20

    In the context of an error message, reporting the type of object found there is a more appropriate (and useful) response.

     
  • Walter

    Walter - 2014-06-22

    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
  • Rick McGuire

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

     
  • Walter

    Walter - 2014-06-22

    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

     
    • Rick McGuire

      Rick McGuire - 2014-06-22

      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:

      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] 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
      2
      a=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/>

       

      Related

      Bugs: #1269

      • Comment has been marked as spam. 
        Undo

        You can see all pending comments posted by this user  here

        Anonymous - 2014-06-22

        sorry. overlooked. thanks. Walter

         
      • Walter Pachl

        Walter Pachl - 2014-06-22

        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: #1269

  • Walter Pachl

    Walter Pachl - 2014-06-23

    Afterthought:
    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??

     
  • Gil Barmwater

    Gil Barmwater - 2014-06-23

    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.

     


Anonymous

Cancel  Add attachments