Connecting Tech Pros Worldwide Forums | Help | Site Map

C#' null.

±èÀçȲ
Guest
 
Posts: n/a
#1: Nov 15 '05
what's the mean this article..please

null == ldnull(MSIL)

/*
Rationale: It might be thought that ldnull is redundant: why not use
ldc.i4.0 or ldc.i8.0 instead? The answer is that ldnull provides a
size-agnostic null -analogous to a ldc.i instruction, which does not exist.
However, even if CIL were to include a ldc.i instruction it would still
benefit verification algorithms to retain the ldnull instruction because it
makes type tracking easier.
*/

and, what is the size-agnostic null???



Jon Davis
Guest
 
Posts: n/a
#2: Nov 15 '05

re: C#' null.


These are references to IL codes. Try the CLR group:
news://msnews.microsoft.com/microsof....framework.clr

Jon


"±èÀçȲ" <jhwang2u@chol.com> wrote in message
news:Oyl4TdgTDHA.2480@tk2msftngp13.phx.gbl...[color=blue]
> what's the mean this article..please
>
> null == ldnull(MSIL)
>
> /*
> Rationale: It might be thought that ldnull is redundant: why not use
> ldc.i4.0 or ldc.i8.0 instead? The answer is that ldnull provides a
> size-agnostic null -analogous to a ldc.i instruction, which does not[/color]
exist.[color=blue]
> However, even if CIL were to include a ldc.i instruction it would still
> benefit verification algorithms to retain the ldnull instruction because[/color]
it[color=blue]
> makes type tracking easier.
> */
>
> and, what is the size-agnostic null???
>
>[/color]


Closed Thread