Re: [DOTNET] CLR execution

2002-05-15 Thread Blake Ryan
In other words, it's the runtime, .. The VES is defined as an abstract machine and should be viewed as such. The details of how a conforming implementation implements the VES (via JIT/execution by software code/interpreted by monkey/hybrid etc.) are not relevent. The CLR conforms, therefore

Re: [DOTNET] DateTime, C# and null

2002-05-13 Thread Blake Ryan
Oops, the "code" below should be defining a struct, not a class (i.e. "struct NullableDateTime). Cheers, Blake > -Original Message----- > From: Blake Ryan [mailto:[EMAIL PROTECTED]] > Sent: 13 May 2002 11:20 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET]

Re: [DOTNET] DateTime, C# and null

2002-05-13 Thread Blake Ryan
3 solutions come to mind: (a) use DateTime.MinValue to represent null (b) box the DateTime value (i.e. pass it as an object) (c) write a NullableDateTime class The 3rd is the only really "proper" way to do it, as it doesn't assume anything about the DateTime value (as (a) does) or prevent stat