[Lvlug] Re: Lisp (was Re: [Nj-linux-consultants] Musings)

Ricardo SIGNES rjbs-lvlug at lists.manxome.org
Fri Jun 11 15:25:05 EDT 2004


* Faber Fedor <faber at linuxnj.com> [2004-06-11T13:48:29]
> 
> In the Algol type languages, you can only return one thing, and many
> times it's a simple data type.  The above example shows how you can
> return TWO pieces of data from a function.  (Technically, you're passing
> back one tuple and putting it into two variables). This first showed up
> in Lisp 50 some years ago.
> 

Don't you go besmirching my beloved Perl!  Perl, which certainly looks
and sometimes acts Cish, is perfectly capable of returning multiple
values.

  my @values = function;
  my ($x, $y) = thingie;

...and other such wonders.

-- 
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.thelinuxlink.net/pipermail/lvlug/attachments/20040611/6daad8b0/attachment.bin


More information about the Lvlug mailing list