Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!caen!spool.mu.edu!uunet!mcsun!ukc!cf-cm!cybaswan!cslaurie From: cslaurie@cybaswan.UUCP (Laurie Moseley ) Newsgroups: comp.lang.pascal Subject: Re: passing two variables Summary: Passing two variables Return a pointer Message-ID: <2579@cybaswan.UUCP> Date: 27 Jun 91 19:26:57 GMT References: Lines: 28 --------------------------------------------------------------------------- If you want to return 2 variables from a function (or 42 for that matter) the easy way to do it is to return a pointer to a linked list of the input data items. That pointer can then be passed to the block which does the processing, and it can process as many as you wish. It even handles null input rather elegantly. I don't know who the original poster was, but if they would like a copy of a program which does this, email me. Laurie (apologies to the referee- original article number not known) ========================================================================== Laurie Moseley Computer Science, University College, Swansea SA2 8PP, UK Tel: +44 792 295399 JANET: cslaurie@uk.ac.swan.pyr ========================================================================= "Why does the Turing test set such abysmally low standards ?" ===========================================================================