Re: [Mono-dev] [PATCH] [VBNC] Treat AscW as CInt with /novbruntimeref (in resolve phase)

2006-09-09 Thread Kornél Pál
A small addition to support constants as well. Kornél - Original Message - From: "Kornél Pál" <[EMAIL PROTECTED]> To: ; "Rolf Bjarne" <[EMAIL PROTECTED]> Sent: Saturday, September 09, 2006 2:29 PM Subject: [Mono-dev] [PATCH] [VBNC] Treat AscW as CInt

[Mono-dev] [PATCH] [VBNC] Treat AscW as CInt with /novbruntimeref (in resolve phase)

2006-09-09 Thread Kornél Pál
Hi, Finally I was able to implement this feature completely without causing any errors. I think this is a proper implementation but if you have any suggestions or objections please let me know. Kornél AscW.diff Description: Binary data ___ Mono

Re: [Mono-dev] [PATCH] [VBNC] Treat AscW as CInt with /novbruntimeref

2006-09-06 Thread Kornél Pál
OTECTED]> To: "Kornél Pál" <[EMAIL PROTECTED]>; Sent: Wednesday, September 06, 2006 1:48 PM Subject: Re: [Mono-dev] [PATCH] [VBNC] Treat AscW as CInt with /novbruntimeref Hello, Commenting code inline: +If Info.Compiler.CommandLine.NoVBRuntimeRef AndAlso Info

Re: [Mono-dev] [PATCH] [VBNC] Treat AscW as CInt with /novbruntimeref

2006-09-06 Thread Rolf Bjarne
Hello, Commenting code inline: +If Info.Compiler.CommandLine.NoVBRuntimeRef AndAlso Info.Compiler.Assembly.IsDefinedHere(Method.DeclaringType) AndAlso Method.IsStatic AndAlso CompareNameOrdinal(Method.Name, "AscW") Then +Dim methodParameters() As ParameterInfo = Method.G

[Mono-dev] [PATCH] [VBNC] Treat AscW as CInt with /novbruntimeref

2006-09-06 Thread Kornél Pál
Hi, I added a hack to EmitArgumentsAndCallOrCallVirt to support the previously discussed functionality. I don't know how exactly the stack evaluation in vbnc works and I keep getting ... reached, but stack is not empty. Another missing functionality is that the return value of this replace