[mono-vb] Re: [Mono-devel-list] MSVB conversion from C# to Mbas status

Manjula G H M mmanjula at novell.com
Thu Mar 10 02:43:49 EST 2005


We are able to hack and support default parameter values in mono's
Microsoft.VisualBasic.dll finally !!!

Ankit Jain has come up with script  (details below in fwd mail) and
this is the final step of http://www.gnomebangalore.org/?q=node/view/498

what Jambu had mentioned in his blog.

Will be avaliable in SVN after through testing and fixing bugs in
monodis and ilasm(mono).

Please fell free to pass your comments.


>>> Ankit Jain <radical at gmail.com> 03/10/05 9:57 AM >>>

Attached files:

fixup4.pl : Given a .il file, it will output the fixed-up .il on
$ ./fixup4.pl vb.il > vb-fixed.il

fixit : This actually, given a .dll disasm's it, runs the fixup script
on it and assembles it back.
$ fixit vb.dll vb-fixed.dll 

gacit : Takes a Microsoft.VisualBasic.dll, signs it, removes the
original Microsoft.VisualBasic.dll from gac, and adds this new one to
the gac.


$ gacit Microsoft.VisualBasic.dll 

gacit and fixit are probably not fit for checkin, cos you would wanna
do this stuff in the makefile.

Right now it works only with .net ilasm.exe and ildasm.exe . There are
some bugs in monodis and ilasm(mono) which i'll try to fix now.

Some details of this are avail on my blog :

BTW, the perl script is written more as a "C" program than as a slick
perl thing.. heh am no perl regular!


Blog :
Mono hacking : http://mono-nosip.blogspot.com 
Personal : http://www.corewars.org/radical

>>> Jambunathan K <kjambunathan.devel at gmail.com> 02/22/05 5:41 PM >>>

Just some trivial heads up on some things that you might want to keep
a watch on ;-)

1) C# has no notion of Modules. And most of the MSVB namespace is
composed of Modules. (Class Status page should help here. Just look
for all classes that have an extra private constructor defined ....)

2) C# has no notion of DefaultParameters. There is a new Attribute
(Mono specific attribute) that I added to all methods that take
default parameter values. Link to my earlier blog
http://www.gnomebangalore.org/?q=node/view/498 has all the required
info on this front.

> 3) At some point I will (should ;)) make test cases for related mbas

You might want to make use of the Mainsoft test cases in MSVB
directory to assess the immediate progress.

Jambunathan K.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixit
Type: application/octet-stream
Size: 363 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050310/132726a7/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixup4.pl
Type: application/octet-stream
Size: 1489 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050310/132726a7/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gacit
Type: application/octet-stream
Size: 316 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050310/132726a7/attachment-0002.obj 

More information about the Mono-devel-list mailing list