Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: gah4 Newsgroups: comp.compilers Subject: Re: C and Java, was Compilers :) Date: Fri, 13 Jan 2023 10:32:16 -0800 (PST) Organization: Compilers Central Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-01-053@comp.compilers> References: <23-01-001@comp.compilers> <23-01-007@comp.compilers> <23-01-051@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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 X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <23-01-051@comp.compilers> Xref: csiph.com comp.compilers:3321 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]