Functions as Struct Properties

Robert Jacques sandford at jhu.edu
Sat Nov 22 18:14:19 PST 2008


On Sat, 22 Nov 2008 18:00:26 -0500, Sam S E <eisenstat.aa at sympatico.ca>  
wrote:

> Hi,
>
> We already have the notation:
>
> int[] array;
> void foo(int[] a, int x);
>
> foo(array, 3);
> array.foo(3);	// means the same thing
>
> so why not extend this to struct first arguments?
> --Sam

This was part of the "Future of D" talk at the D conference (see Uniform  
function types, page 9 http://s3.amazonaws.com/dconf2007/WalterAndrei.pdf )



More information about the Digitalmars-d mailing list