Hi, I didn't have a look at the docs, but when a type has no namespace or is in the global namespace (I don't know the which is the right term:) Type.Namespace returns null on Mono and MS.NET as well. It's quite easy to create a such type. An example is Consts.cs that is used in almost all class library assemblies. But that's a non-public type that didn't expose the bug in vbnc. Miguel however added a mcs/class/Managed.Windows.Forms/System.Windows.Forms/IDropTarget.cs class that is far from the expected version but it's a luck for us because it exposed this bug in vbnc.:)
Kornél ----- Original Message ----- From: "Rolf Bjarne Kvinge" <[EMAIL PROTECTED]> To: "Kornél Pál" <[EMAIL PROTECTED]>; "Miguel de Icaza" <[EMAIL PROTECTED]> Cc: <[email protected]>; "Rafael Mizrahi" <[EMAIL PROTECTED]> Sent: Wednesday, September 13, 2006 12:41 AM Subject: Re: [Mono-list] VBNC in Mono. > Hi Kornél, > > Regarding the bug in vbnc: how (and where) did you find a type with a null > namespace? > According to MSDN this should not happen unless it is a generic type: > http://msdn2.microsoft.com/en-us/library/system.type.namespace.aspx > > Anyway feel free to commit the patch ;) > > Rolf > >> Hi, >> >> Use "VB.replace.bat 2" then try to bootstrap vbnc on MS.NET. >> >> For an example have a look at the attached vbrun.diff. >> >> The bug I found when trying to compile vbnc was: >> Case TypeCode.Decimal >> Return CDec(Value) >> >> This results in a recursiong with Conversions.ToDecimal because CDec (and >> all the other CType conversions are done at runtime unless the type is >> known >> to the compiler as well. And anyway there is no use to do >> reinterpretation >> when the exact type is know. A simple unbox is enough. >> >> But there are other bugs (and I guess a lot of them) in VB runtime for >> sure. >> >> And I found a bug in vbnc as well that was possible because of a bug in >> System.Windows.Forms.:) >> >> Kornél >> >> ----- Original Message ----- >> From: "Miguel de Icaza" <[EMAIL PROTECTED]> >> To: "Kornél Pál" <[EMAIL PROTECTED]> >> Cc: <[email protected]> >> Sent: Wednesday, September 13, 2006 12:04 AM >> Subject: Re: [Mono-list] VBNC in Mono. >> >> >>> Hey! >>> >>>> But it's unable to bootstrap itself on MS.NET using our VB runtime so >>>> the >>>> VB >>>> runtime should be fixed as well before trying to fix vbnc on Mono. >>> >>> Do you have some details for me? >>> >>> This is a good observation, before we launch ourselves into a quest to >>> fix bugs on the Mono side (although we already fixed a known problem) > > > > -- > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.3/445 - Release Date: 11/09/2006 > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
