Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-295

Unexpected order when print !boolean

    XMLWordPrintableJSON

Details

    Description

      If I print the 'not' of a boolean value using print(''+!booleanValue), the resulting output to the console happens later than would be expected. For example, consider the following DML:

      b = TRUE
      print(b)
      print(''+b)
      print('hello')
      
      print(b)
      print(''+!b)
      print('goodbye')
      

      This outputs the following:

      TRUE
      TRUE
      hello
      TRUE
      goodbye
      FALSE
      

      I would expect the following:

      TRUE
      TRUE
      hello
      TRUE
      FALSE
      goodbye
      

      This also happens for PyDML.

      Attachments

        Activity

          People

            Unassigned Unassigned
            deron Jon Deron Eriksson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: