From: John Max Skaller (skaller_at_[hidden])
Date: 2001-07-01 11:57:11
Douglas Gregor wrote:
> One need only lift the restriction that operator, cannot be overloaded for
> primitive datatypes to give tuples a more natural construction interface.
That is equivalent to banning the current meaning :-)
> Tuples may be an exception because they are so basic, but I would say that
> the first question one should ask when implementing a new language feature is
> 'what prevents this from being part of a library instead of the language?'
Apart from efficiency, and a low limit on the maximum
arity of a tuple, a binary operation won't do. Tuple formation
isn't associative, distinct operators of arity 0,2,3, .. n.
Function call is fine
if you provide n of them for large enough n.
-- John (Max) Skaller, mailto:skaller_at_[hidden] 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 New generation programming language Felix http://felix.sourceforge.net Literate Programming tool Interscript http://Interscript.sourceforge.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk