Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!newsfeed.utanet.at!newsfeed2.utanet.at!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Newsgroups: comp.lang.java.programmer From: Andreas Leitgeb Subject: Re: calling own methods from constructor References: <2011040622233261380-angrybaldguy@gmailcom> <455e7ffb-369e-4d88-912e-01581c7cbfb5@bl1g2000vbb.googlegroups.com> Reply-To: avl@logic.at User-Agent: slrn/pre0.9.9-111 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Date: 07 Apr 2011 20:11:38 GMT Lines: 17 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1302207098 tunews.univie.ac.at 60386 128.130.175.3 X-Complaints-To: abuse@tuwien.ac.at Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2941 Tobias Blass wrote: > On 2011-04-07, Alessio Stalla wrote: >> On 7 Apr, 14:19, Andreas Leitgeb wrote: >>> Casting in C++ is something different than in Java. >>> Although, if you really do C, not C++, then it's it's >>> much more like Java, except for the lacking safety net. >> I don't know about C++, but in C casting is not like Java at all. I dare to disagree, but this group here is not the place to elaborate on it. In a nutshell: C++ casts are just so much more unlike Java's ... > Is there any case where the C compiler rejects casts? I cannot imagine an > example. Most likely it will reject casts between different structures or between structures and primitives. (too lazy to test this now, though)