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

Function calls with extraneous input arguments allowed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemML 0.15
    • Parser, Runtime
    • None

    Description

      Even though the following function only takes one input argument, if it is called with multiple input arguments, the extraneous arguments are ignored rather than throwing an error:

      triple = function(double a) return (double z) { z = a*3; }
      x = triple(10,11,12)
      print(x)
      

      (This outputs 30.0)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: