JDK-4034116 : Functions that return multiple values
  • Type: Enhancement
  • Component: specification
  • Sub-Component: language
  • Affected Version: 1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-02-24
  • Updated: 1997-12-17
  • Resolved: 1997-12-17
Related Reports
Relates :  
Relates :  
Relates :  
Description

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 - ###@###.###
======================================================================

Comments
EVALUATION Completely unnecessary. gilad.bracha@eng 1997-12-17
17-12-1997

WORK AROUND Name: mc57594 Date: 02/24/97 ====================================================================== Package multiple objects in an array or a container Object. If that is all you use this container for, good implementations will be able to optimize the allocation away. gilad.bracha@eng 1997-12-17
17-12-1997