[Mono-dev] Secret Instructions and their Terrible Purpose

Raja R Harinath harinath at hurrynot.org
Sun May 11 02:22:58 EDT 2008


Hi,

"Scott Peterson" <lunchtimemama at gmail.com> writes:

> ScopeInitializer.DoEmitStatement (mcs/anonymous.cs line 820):
>
> 				ec.ig.Emit (OpCodes.Nop);
> 				ec.ig.Emit (OpCodes.Ldc_I4, id);
> 				ec.ig.Emit (OpCodes.Pop);
> 				ec.ig.Emit (OpCodes.Nop);
>
> What's the deal? csc doesn't emit these instructions. Are they some
> kind of Secret Mono Metadata? Do I need to be initialized into the
> Brotherhood of Blood before I can be told their hidden meaning? Am I
> digging where I shouldn't? Do boat-rockers like me run the risk of
> falling overboard *WINK*WINK*?
>
> I want the truth!

They're probably just debugging leftovers.  Since we don't usually
generate 'nop's in mcs, this is probably a good way to jump to an
anonymous method block.

- Hari



More information about the Mono-devel-list mailing list