Jarrett Billingsley Wrote:
> On Sun, Nov 23, 2008 at 10:48 AM, Sam S E <[EMAIL PROTECTED]> wrote:
> > Jarrett Billingsley Wrote:
> >
> >> On Sat, Nov 22, 2008 at 11:40 PM, Sam S E <[EMAIL PROTECTED]> wrote:
> >> > Does foreach use delegate
Jarrett Billingsley Wrote:
> On Sat, Nov 22, 2008 at 11:40 PM, Sam S E <[EMAIL PROTECTED]> wrote:
> > Does foreach use delegates? Isn't that unnecessary overhead?
> > --Sam
>
> It does use delegates, for iterating over most types. When iterating
> over arrays
Does foreach use delegates? Isn't that unnecessary overhead?
--Sam
Nick Sabalausky Wrote:
> "Sam S E" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > We already have the notation:
> >
> > int[] array;
> > void foo(int[] a, int x);
> >
> > foo(array, 3);
>
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