Re: foreach

2008-11-23 Thread Sam S E
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

Re: foreach

2008-11-23 Thread Sam S E
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

foreach

2008-11-22 Thread Sam S E
Does foreach use delegates? Isn't that unnecessary overhead? --Sam

Re: Functions as Struct Properties

2008-11-22 Thread Sam S E
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); >

Functions as Struct Properties

2008-11-22 Thread Sam S E
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