why cant function parameters be grouped by type ?

Baz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 12 04:49:18 PDT 2015


Hi,
while variable declarations work in list:

> uint a,b,c;

function parameters declarations don't:

> void foo(uint a,b,c);

Because of this, function declarations are sometimes super-wide.
(despite of the fact that: 
http://www.brainyquote.com/quotes/quotes/a/alanperlis177279.html)

In the previous example, we could imagine that once a type 
defined, it'd valid until a new one appears (until a 
"redefinition" / an "override").

Is there anything in the grammar that prevents this syntax ?

Thx.


More information about the Digitalmars-d-learn mailing list