[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-dotnet-language-devs
Subject:    Re: ilasm vararg methods
From:       Serge Lidin <slidin () MICROSOFT ! COM>
Date:       2003-07-28 16:50:34
[Download RAW message or body]

Hi Jackson,

Yes, using ILASM you can put elipsis (ELEMENT_TYPE_SENTINEL) in the signature of a \
method definition, and no, it's not an appropriate thing to do. The methods 'a' and \
'b' have different signatures, and method 'a' most probably won't be resolved \
correctly when called, while 'b' most certainly will. 

Thanks,
Serge

-----Original Message-----
From: Compiler Developers for .NET
[mailto:DOTNET-LANGUAGE-DEVS@DISCUSS.MICROSOFT.COM]On Behalf Of Jackson
Harper
Sent: Monday, July 28, 2003 8:30 AM
To: DOTNET-LANGUAGE-DEVS@DISCUSS.MICROSOFT.COM
Subject: ilasm vararg methods


 
Hello,

  According to the ecma spec the ellipsis is not supposed to be used in the \
definition of a vararg method. However with ilasm you can use the ellipsis in the \
definition of a vararg method, and when disassembling that method the ellipsis will \
show up in the method signature. Is there something I am missing? What is the \
difference between the following methods?

.method public static vararg void a (int32, ...)
{
        ret
}

.method public static vararg void b (int32)
{
        ret
}


Thanks in advance,
Jackson


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic