[Mono-devel-list] RE: [mono-vb] Just a small bit of information...
B Anirban
banirban at novell.com
Wed Sep 22 02:32:30 EDT 2004
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
> 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
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
".Param[]" in Microsoft.VisualBasic.dll.
There was a hack done by Jambu already on this inside mcs.
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
- A new internal attribute __DefaultArgumentValue is introduced in
Microsoft.VisualBasic.CompilerServices namespace.
- The resulting Microsoft.VisualBasic.dll assembly with this new
custom attribute will be post-processed through a
"disassemble-fixup-assemble cycle" which strips off the
"__DefaultArgumentValue" custom attribute from the method parameter
and replaces it with the suitable CIL parameter flags and constants.
Jamb is currently taking care of this.
Once this is done we are all set to start using optional parameters in VB
Runtime.
>Probably we will rewrite MS.VB in VB.NET, as soon as mbas is able
> to compile it...
Miguel has shown his concerns in rewriting the whole VB runtime code in VB
and I personally strongly agree with him.
Thanks.
Anirban.
>>> <Rob.Tillie at 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 :).
> 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,
>
>
> On Tue, 21 Sep 2004 20:39:23 +0200, rob.tillie at student.tul.edu
> <rob.tillie at 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 at gmail.com]
> > > Sent: Tuesday, September 21, 2004 8:01 PM
> > > To: mono-vb at lists.ximian.com
> > > 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
> > >
> > > Fun,
> > >
> > > --
> > > Rafael "Monoman" Teixeira
> > > ---------------------------------------
> > > "Eu poderia suportar, embora não sem dor, que tivessem
> > > ido todos os meus amores, mas enlouqueceria se perdesse
> > > todos os meus amigos!
> > > A alguns deles não procuro, basta-me saber que eles existem.
> > > Esta mera condição me encoraja a seguir em frente pela vida....
> > > mas é delicioso que eu saiba e sinta que os adoro,
> > > embora não declare e não 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 at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-vb
> >
>
>
>
> --
> Rafael "Monoman" Teixeira
> ---------------------------------------
> "Eu poderia suportar, embora não sem dor, que tivessem
> ido todos os meus amores, mas enlouqueceria se perdesse
> todos os meus amigos!
> A alguns deles não procuro, basta-me saber que eles existem.
> Esta mera condição me encoraja a seguir em frente pela vida....
> mas é delicioso que eu saiba e sinta que os adoro,
> embora não declare e não 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 at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-vb
More information about the Mono-devel-list
mailing list