Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33301 > unrolled thread

Re: Java to C# translator

Started byhermsoftware@gmail.com
First post2015-12-04 23:57 -0800
Last post2015-12-05 19:39 -0500
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Java to C# translator hermsoftware@gmail.com - 2015-12-04 23:57 -0800
    Re: Java to C# translator Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-12-05 08:22 -0500
    Re: Java to C# translator Arne Vajhøj <arne@vajhoej.dk> - 2015-12-05 19:39 -0500

#33301 — Re: Java to C# translator

Fromhermsoftware@gmail.com
Date2015-12-04 23:57 -0800
SubjectRe: Java to C# translator
Message-ID<2818693a-3f98-42ca-8361-3d7fc92b8d8b@googlegroups.com>
On Monday, June 23, 2003 at 3:28:46 PM UTC-4, Liza wrote:
> why would anyone want to translate Java to C# ?
> 
> 
> Liza

That's an effective answer!  

[toc] | [next] | [standalone]


#33304

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2015-12-05 08:22 -0500
Message-ID<n3uoau$cvq$1@dont-email.me>
In reply to#33301
On 12/5/2015 2:57 AM, hermsoftware@gmail.com wrote:
> On Monday, June 23, 2003 at 3:28:46 PM UTC-4, Liza wrote:
>> why would anyone want to translate Java to C# ?
>>
>>
>> Liza
>
> That's an effective answer!

     And so very timely, too.

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

[toc] | [prev] | [next] | [standalone]


#33310

FromArne Vajhøj <arne@vajhoej.dk>
Date2015-12-05 19:39 -0500
Message-ID<n4004v$h0h$2@speranza.aioe.org>
In reply to#33301
On 12/5/2015 8:06 AM, Stefan Ram wrote:
> hermsoftware@gmail.com writes:
>> On Monday, June 23, 2003 at 3:28:46 PM UTC-4, Liza wrote:
>>> why would anyone want to translate Java to C# ?
>> That's an effective answer!
>
>    For simple programs, it is easy, You just replace the
>    first three lines: So,
>
> public final class Main
> { public static void main( final java.lang.String[] args )
>    { java.lang.System.out.println
>      ( 1 + 1 ); }}
>
>    becomes
>
> class Example
> { static void Main()
>    { System.Console.WriteLine
>      ( 1 + 1 ); }}
>
>    . Some advanced programs use constants such as
>    »java.lang.Math.PI«. Here, one must use the golden
>    rule of Java-to-C#-translation:
>
>      .--------------------------------------------.
>      | Replace »java.lang.Math« by »System.Math«! |
>      '--------------------------------------------'
>
>    Thus,
>
> public final class Main
> { public static void main( final java.lang.String[] args )
>    { java.lang.System.out.println
>      ( java.lang.Math.PI ); }}
>
>    becomes
>
> class Example
> { static void Main()
>    { System.Console.WriteLine
>      ( System.Math.PI ); }}
>
>    . And I think that's it. Happy translation!

I don't expect anybody besides you to write Java or C# this way.

Arne

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web