Boost logo

Boost :

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
Literate Programming tool Interscript

Boost list run by bdawes at, gregod at, cpdaniel at, john at