Re: [ADVANCED-DOTNET] Methods Calls on value types

2004-11-26 Thread Shawn A. Van Ness
g - > >to > > > ask my specific question. > > > > > > My question was (It may sound dumb!) : > > > Why the value type instance was not boxed in the supplied code ? > > > > > > Regards, > > > Girish Jain > > > > >

Re: [ADVANCED-DOTNET] Methods Calls on value types

2004-11-25 Thread Girish Jain
AIL PROTECTED]> Reply-To: "Unmoderated discussion of advanced .NET topics." <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Methods Calls on value types Date: Thu, 25 Nov 2004 11:52:45 -0800 Because there's no reason to box it. All that's need

Re: [ADVANCED-DOTNET] Methods Calls on value types

2004-11-25 Thread Shawn A. Van Ness
> > > - Original Message - > From: "Shawn A. Van Ness" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 24, 2004 1:46 AM > Subject: Re: [ADVANCED-DOTNET] Methods Calls on value types > > > > IL_0002: ldloca.s

Re: [ADVANCED-DOTNET] Methods Calls on value types

2004-11-25 Thread Hotmail
type instance was not boxed in the supplied code ? Regards, Girish Jain - Original Message - From: "Shawn A. Van Ness" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 24, 2004 1:46 AM Subject: Re: [ADVANCED-DOTNET] Methods Calls on value types

Re: [ADVANCED-DOTNET] Methods Calls on value types

2004-11-23 Thread Shawn A. Van Ness
> IL_0002: ldloca.s V_0 // Load local variable address on to > the stack Sounds like you understand, just fine. The CPU pushes the address of the valuetype onto the stack, before making the function call. That's a pointer, on the stack, *to* something else on the stack (but slig

[ADVANCED-DOTNET] Methods Calls on value types

2004-11-23 Thread Girish Jain
Hi All, I am really confused as to how the instance method calls on the value types are processed. My initial understanding was that since value types do not have an object header associated with them as compared to reference types, for all instance method calls on the value type the value type ins