new DIP47: Outlining member functions of aggregates

Iain Buclaw ibuclaw at ubuntu.com
Sat Sep 7 12:19:25 PDT 2013


On 7 September 2013 20:04, Jonas Drewsen <nospam4321 at hotmail.com> wrote:
>> 3. Parameter names need not match.
>
>
> I think we should be conservative and require that parameter names match.
> This will ensure that code will not break in the future if named parameter
> functionality is added to the language at some point.
>

What about the absence of parameter names in the declaration?

struct Foo
{
   int bar (string, int, int);
}


int
Foo.bar (string str, int start, int end)
{
  /* ... */
}


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list