Newsgroups: comp.lang.dylan
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!usenet.eel.ufl.edu!news-feed-1.peachnet.edu!gatech!swrinde!cs.utexas.edu!news.sprintlink.net!dorite!ts2-ind-21.iquest.net!user
From: fritza@iquest.net (Fritz Anderson)
Subject: Newbie on multiple return values
Message-ID: <fritza-2702951657020001@ts2-ind-21.iquest.net>
Sender: news@dorite.use.com (News Admin)
Organization: Himself
Date: Mon, 27 Feb 1995 21:57:02 GMT
Lines: 14

Am I right in assuming that the following is the proper way to declare a
method that returns two numbers?

define method returns-two-numbers(just-some-arg :: <number>)
      => (one-result :: <number>, another-result :: <number>);
//  actual code, ending with
      values(foo, bar)
end method;

The DIRM is not clear on the point.

-- 
Fritz Anderson         Indianapolis, Indiana   317-257-2227            fritza@well.sf.ca.us   fritza@iquest.net       WT9T
I've begun to suspect that large portions of the Universe -- possibly including history itself -- do not properly reward fair play, and I tell you I'm pretty worked up about it.
