Stepping back and looking at constness from another angle.

Derek Parnell derek at nomail.afraid.org
Wed Jun 6 21:58:05 PDT 2007


On Wed, 06 Jun 2007 20:45:18 -0700, David B. Held wrote:


>   Remember that function argument lists are type tuples.

No they're not. Sure, currently they look /like/ a tuple of types, but
that's not what they actually are. This visual similarity is a side-effect
of the current syntax.

A function argument list is a tuple of course, but each argument in the
signature also identifies the passing mechanism and the access mechanism
and not only the type.

Even in current D one cannot say that a function argument list such as
"(inout int, out int, in int)" is a type tuple.

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Justice for David Hicks!"
7/06/2007 2:52:04 PM



More information about the Digitalmars-d mailing list