[ nice-Feature Requests-1124222 ] Tupple usage

"SourceForge.net" <[email protected]> Tue, 22 Feb 2005 09:17:56 -0800
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Feature Requests item #1124222, was opened at 2005-02-16 20:32
Message generated for change (Comment added) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1124222&group_id=12788

Category: None
Group: None
>Status: Deleted
Priority: 5
Submitted By: Peter Wilson (peterwilson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tupple usage

Initial Comment:
Make access to tupple contents easier. I believe Groovy
has this feature:

Taken from manual.html:Example 7.2. Method returning
several values using a tuple

#1 usage improvement: allow local variables on tupple
returns:

declaration:
(int, int) minMax(int x, int y) = x < y ? (x, y) : (y, x);
use:
(x, y) = minMax(3,5); // not very convincing for this
function.
  println("(" + x + ", " + y + ")");

#2 usage improvement: allow local variables on tupple
arguments:
void printTuple((int x, int y) tuple)
{
//  /** Declare two local variables, and assign to each
the //corresponding value
//      in the tuple.
//  */
//  (int x, int y) = tuple;

  println("(" + x + ", " + y + ")");
}

----------------------------------------------------------------------

>Comment By: Daniel Bonniot (bonniot)
Date: 2005-02-22 18:17

Message:
Logged In: YES 
user_id=88952

Deleting, as this looks like a duplicate of #1124210.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1124222&group_id=12788


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click