[mono-vb] Just a small bit of information...

B Anirban banirban@novell.com
Wed, 22 Sep 2004 00:32:30 -0600


Hi Rafael / Rob,

There is a great deal of work that has been done on this front in
 the meanwhile.

> Have the Mono VB team figured out a solution for the Optional=20
> Parameter problem?

Here is the list of work that has been done till now since the initial
 debate -
* Lupus added support the setting up default value in=20
ParameterBuilder.SetConstant.
* Jambu enabled ParameterInfo class to fetch that default value
 from the constant table
* Bernie has enhanced mbas to consume the Optional parameters
* Retrieving default value from Parameterinfo is fixed inside mbas

Now, the only thing left is emitting DefaultValue attribute as=20
".Param[]" in Microsoft.VisualBasic.dll.

There was a hack done by Jambu already on this inside mcs.=20
But, mcs developers had some concern on adding a vb specific feature
in mcs.

So, we took a round about way to fix the problem=20

- A new internal attribute __DefaultArgumentValue is introduced in=20
Microsoft.VisualBasic.CompilerServices namespace.
- The resulting Microsoft.VisualBasic.dll assembly with this new=20
custom attribute will be post-processed through a =20
"disassemble-fixup-assemble cycle" which strips off the=20
"__DefaultArgumentValue" custom attribute from the method parameter
and replaces it with the suitable CIL parameter flags and constants.=20

Jamb is currently taking care of this.

Once this is done we are all set to start using optional parameters in =
VB=20
Runtime.



>Probably we will rewrite MS.VB in VB.NET, as soon as mbas is able=20
> to compile it...

Miguel has shown his concerns in rewriting the whole VB runtime code in =
VB=20
and I personally strongly agree with him.

Thanks.
Anirban.


>>> <Rob.Tillie@Student.tUL.EDU> 22-Sep-04 2:13:45 AM >>>
Hey Rafael,

> Probably we will rewrite MS.VB in VB.NET, as soon as mbas is able to
> compile it...

Hmm, then I'd better start learning the VB.NET syntax then :).
=20
> We eagerly wait for your return, Rob.

:P, I'm keeping an eye on bugzilla for the class lib in the meantime ;).

> Enjoy MSBuild hacking,
>=20
>=20
> On Tue, 21 Sep 2004 20:39:23 +0200, rob.tillie@student.tul.edu=20
> <rob.tillie@student.tul.edu> wrote:
> > Hey Rafael,
> >
> > Didn't we know this already?
> > Btw, as I'm talking to the list now anywayz, have the Mono VB team
> figured
> > out a solution for the Optional Parameter problem?
> >
> > Greetz and good luck with completing VB.NET,
> > -- Rob.
> >
> > PS: I have not left VB, just temporarily working on MSBuild :). I'll =
be
> back
> > soon!
> >
> >
> >
> > > -----Original Message-----
> > > From: Rafael Teixeira [mailto:monoman@gmail.com]=20
> > > Sent: Tuesday, September 21, 2004 8:01 PM
> > > To: mono-vb@lists.ximian.com=20
> > > Subject: [mono-vb] Just a small bit of information...
> > >
> > > From a transcript of an old chat with .NET developers:
> > >
> > > <snip>
> > > Grant_MS
> > > Q: aleksey : Is .NET class lib written in C#? Is VB.NET used for
> > > internal development at all?
> > >
> > > Grant_MS
> > > A: Most of the .NET class libraries are written in C#, but a few are
> > > written at least partially using the managed extensions to C++. As =
far
> > > as I know the only internal library written in VB.NET is its own
> > > runtime: Microsot.VisualBasic.dll.
> > > </snip>
> > >
> > > From http://msdn.microsoft.com/chats/vstudio/vstudio_062602.asp=20
> > >
> > > Fun,
> > >
> > > --
> > > Rafael "Monoman" Teixeira
> > > ---------------------------------------
> > > "Eu poderia suportar, embora n=E3o sem dor, que tivessem
> > > ido todos os meus amores, mas enlouqueceria se perdesse
> > > todos os meus amigos!
> > > A alguns deles n=E3o procuro, basta-me saber que eles existem.
> > > Esta mera condi=E7=E3o me encoraja a seguir em frente pela vida....
> > > mas =E9 delicioso que eu saiba e sinta que os adoro,
> > > embora n=E3o declare e n=E3o os procure sempre".
> > >         Vinicius de Moraes - O "Poetinha"
> > > My bad translation:
> > > "I could survive, not without pain, that all my lovers
> > > would disappear, but would be driven crazy if
> > > I had lost all my friends!
> > > Some I don't even have to reach, I just need to know that they =
exist.
> > > This mere condition makes me brave enough to go ahead with my =
life...
> > > but it is sweet that I know and feel that I love them,
> > > even if I don't state it openly and reach for them always."
> > >         Vinicius de Moraes - Brazilian Poet
> > > _______________________________________________
> > > Mono-vb mailing list
> > > Mono-vb@lists.ximian.com=20
> > > http://lists.ximian.com/mailman/listinfo/mono-vb=20
> >
>=20
>=20
>=20
> --
> Rafael "Monoman" Teixeira
> ---------------------------------------
> "Eu poderia suportar, embora n=E3o sem dor, que tivessem
> ido todos os meus amores, mas enlouqueceria se perdesse
> todos os meus amigos!
> A alguns deles n=E3o procuro, basta-me saber que eles existem.
> Esta mera condi=E7=E3o me encoraja a seguir em frente pela vida....
> mas =E9 delicioso que eu saiba e sinta que os adoro,
> embora n=E3o declare e n=E3o os procure sempre".
>         Vinicius de Moraes - O "Poetinha"
> My bad translation:
> "I could survive, not without pain, that all my lovers
> would disappear, but would be driven crazy if
> I had lost all my friends!
> Some I don't even have to reach, I just need to know that they exist.
> This mere condition makes me brave enough to go ahead with my life...
> but it is sweet that I know and feel that I love them,
> even if I don't state it openly and reach for them always."
>         Vinicius de Moraes - Brazilian Poet
_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com=20
http://lists.ximian.com/mailman/listinfo/mono-vb