[Mono-devel-list] Re: [mono-vb] VB Class status

Jackson Harper jackson at ximian.com
Wed Jun 23 16:58:11 EDT 2004


On Wed, 2004-06-23 at 12:43, A Rafael D Teixeira wrote:
> It's indead trickier:
> 
> code like
> 
>    Private Sub x(ByVal w As String, Optional ByVal y As Integer = 132)
>         TextBox1.Text = w & y
>     End Sub
> 
>     Private Sub z()
>         x("what", 1)
>         x("whatnot")
>     End Sub
> 
> generates things like
> 
> .method private instance void  x(string w,
>                                  [opt] int32 y) cil managed
> {
>   .param [2] = int32(0x00000084)
>   .maxstack  8
>   IL_0000:  nop
>   IL_0001:  ldarg.0
> ...
>   IL_001a:  ret
> } // end of method Form1::x
> 
 
  OK I haven't been following this at all. I just have a vfolder that
told me my name was in the mail. .param is used when default values are
assigned to parameters. The corresponding param in the Param metadata
table will also be given the unnamed 0x1000 flag in its flags field. In
ILASM this field is set by the compiler, not the person writing the
code. I don't know what your specific problem is but its possible our
SRE is not emitting this flag.

Hope this was of some use,
Jackson






More information about the Mono-devel-list mailing list