[1854] in java-interest

home help back first fref pref prev next nref lref last post

functions with multiple OUT parameters...

daemon@ATHENA.MIT.EDU (Caveh Jalali)
Mon Sep 18 20:36:08 1995

Date: Mon, 18 Sep 1995 13:37:31 -0700
From: caveh@mufasa40.Eng.Sun.COM (Caveh Jalali)
To: java-interest@java.Eng.Sun.COM


is there preferred way to return more than one object from a function?

for example:

void MyGettimeofday(MyDate date, MyZone zone);

where both date and zone are OUT parameters.

the only solution i see is to define a new class that contains MyDate
and MyZone and have it returned by MyGettimeofday().

any thoughts?

-- 
00c
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post