Re: C and Java, was Compilers :)

gah4 <gah4@u.washington.edu>
Fri, 13 Jan 2023 10:32:16 -0800 (PST)

          From comp.compilers

Related articles
Compilers :) deavmi@redxen.eu (Tristan B. Velloza Kildaire) (2023-01-02)
Re: Compilers :) DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2023-01-05)
Re: Compilers :) deavmi@redxen.eu (Tristan B. Velloza Kildaire) (2023-01-13)
Re: C and Java, was Compilers :) gah4@u.washington.edu (gah4) (2023-01-13)
Re: C and Java, was Compilers :) gah4@u.washington.edu (gah4) (2023-01-13)
Re: C and Java, was Compilers :) dave_thompson_2@comcast.net (2023-01-28)
Re: C and archtecture, C and Java, was Compilers :) Keith.S.Thompson+u@gmail.com (Keith Thompson) (2023-01-29)
Re: C and Java, was Compilers :) gah4@u.washington.edu (gah4) (2023-01-29)
| List of all articles for this month |

From: gah4 <gah4@u.washington.edu>
Newsgroups: comp.compilers
Date: Fri, 13 Jan 2023 10:32:16 -0800 (PST)
Organization: Compilers Central
References: 23-01-001 23-01-007 23-01-051
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="95904"; mail-complaints-to="abuse@iecc.com"
Keywords: C, Java, comment
Posted-Date: 13 Jan 2023 14:10:34 EST
In-Reply-To: 23-01-051

On Friday, January 13, 2023 at 10:00:11 AM UTC-8, Tristan B. Velloza Kildaire wrote:


(snip)


> Think of C, but with object orientation similiar to C++ added, however
> single inheritance, interface support (as per C++ as well). Really java
> OOP's model but attached into C.


I always thought that Java was, intentionally, more like C than C++ is like C.


That was even before they added System.out.format(), which should make
C programmers even happier.


Some time ago, I was trying to figure out if you could make a C compiler
that generated JVM code. I would run much closer to the C standard
than much C code does, especially regarding casting of pointers.
[So what did you conclude? I'd think C type casts would be hard to
turn into Java unless you made all of storage an opaque block. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.