Re: multiple outputs in Java

jimbo@radiks.net
13 Dec 2000 15:03:03 -0500

          From comp.compilers

Related articles
multiple outputs in Java fjh@cs.mu.OZ.AU (2000-12-11)
Re: multiple outputs in Java jimbo@radiks.net (2000-12-13)
Re: multiple outputs in Java tlh20@cam.ac.uk (Tim Harris) (2000-12-18)
| List of all articles for this month |

From: jimbo@radiks.net
Newsgroups: comp.compilers
Date: 13 Dec 2000 15:03:03 -0500
Organization: Deja.com - Before you buy.
References: 00-12-048
Keywords: Java
Posted-Date: 13 Dec 2000 15:03:03 EST

    fjh@cs.mu.OZ.AU (Fergus Henderson) wrote:
> One issue that has arisen is that our source language
> allows procedures with multiple output arguments
> (a.k.a. multiple return values). What's the best way
> to compile this to Java?


You might want to return all values as Vectors (java.util.Vector)
or arrays of a particular object type. ( Vector access is
more expensive at run-time than an array. )


Jim Lawless | MailSend - Cmd line e-mail sender
jimbo@radiks.net | MailGrab - Cmd line e-mail reader
http://www.radiks.net/jimbo | BPL - Batch Prog. Language


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.