Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4034116

Functions that return multiple values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.1
    • specification
    • None
    • x86
    • windows_nt



      Name: mc57594 Date: 02/24/97


      It would be nice if functions could return more than one object for example

      public (int, File) getData(int p_stuff){
        return m_anInt, m_aFile;
      }

      ...
        File f; int i;
        (i, f) = getData(2);

      This save having to make an object just to hold the data


      company - Seagate Software IMG , email - ###@###.###
      ======================================================================

            gbrachasunw Gilad Bracha (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: