[Mono-dev] [PATCH] Generate Consts.vb from Consts.cs (new patch)

Kornél Pál kornelpal at gmail.com
Thu Aug 24 08:39:30 EDT 2006


Hi,

I attached a cs2vb.cs that is functionally equivalent to cs2vb.pl. (I 
created this just for fun to show how much easier it is in Perl.:)

I anybody has ideas how to compile a C# program before compiling anything 
else help is welcome otherwise I think the previously attached cs2vb.pl is 
the best solution.

>But perhaps tomorrow you need constans and X; and in one month you see
>that you need Y too, and then Z... And you could have finished it
>earlier reusing code..? :)

Consts.cs is for constants. If we need code it probably will be (and should 
be) put to separate code files. Converting code from one language to another 
as the part of the build process is a bad idea anyway. Even if you convert 
it programatically you have to look at the result that everyting is fine. So 
if we need the same code both in C# and VB there should be two source files 
in SVN.

Consts.cs is a special case because it only contains constants. It's more 
like a configuration file than a code file.

Kornél

----- Original Message ----- 
From: "Ympostor" <ympostor at clix.pt>
To: <mono-devel-list at lists.ximian.com>
Sent: Thursday, August 24, 2006 1:45 PM
Subject: Re: [Mono-dev] [PATCH] Generate Consts.vb from Consts.cs (new 
patch)


Kornél Pál escribió:
> This conversion is restricted to constants. And it should be simple rather
> than a complex language converter.

But perhaps tomorrow you need constans and X; and in one month you see
that you need Y too, and then Z... And you could have finished it
earlier reusing code..? :)


> BTW who do you mean on the SD guys?

Sorry for not clarifying, SD: SharpDevelop.

Regards.

-- 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cs2vb.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060824/abd6916f/attachment.pl 


More information about the Mono-devel-list mailing list