Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > Re: TUPLE
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 850 of 917
Post > Topic >>

Re: TUPLE

by Peter Horan <peter@[EMAIL PROTECTED] > Feb 2, 2007 at 06:51 AM

toto wrote:
> ECMA allows to declare 
> 
>         x: TUPLE[count, balance: INTEGER; name, forname: STRING]
> 
> My question is: "how usefull is it?".

tuples allow:

    1. a number of parameter values to be passed or returned using a
single
       entity

    2. assignment to an entity with fewer parameters.
       For example, defining
           y: TUPLE[c: INTEGER]
       allows the assignment of your x to y as follows:
           y := x

    3. variable length arguments to be handled in a type safe way.
-- 
Peter Horan               School of Engineering and Information Technology
peter@[EMAIL PROTECTED]
       Deakin University
+61-3-5227 1234 (Voice)   Geelong, Victoria 3217, AUSTRALIA
+61-3-5227 2028 (FAX)     http://www.eit.deakin.edu.au/~peter

-- The Eiffel guarantee: From specification to implementation
-- (http://www.cetus-links.org/oo_eiffel.html)




 5 Posts in Topic:
TUPLE
toto <stop-aux-spams@[  2007-02-01 22:04:40 
Re: TUPLE
Peter Horan <peter@[EM  2007-02-02 06:51:07 
Re: TUPLE
J <totuti456@[EMAIL PR  2007-02-02 16:21:46 
Re: TUPLE
"llothar" <l  2007-02-02 15:13:28 
Re: TUPLE
"Greg C" <gm  2007-02-15 17:29:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 6:24:31 CDT 2008.