[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] Re: [OT] Java is fun
From: |
zander |
Subject: |
[Gnu-arch-users] Re: [OT] Java is fun |
Date: |
Fri, 24 Oct 2003 07:06:52 +0200 |
On Thu, Oct 23, 2003 at 10:14:16AM -0700, Tom Lord wrote:
> Yes, that's true of typical implementations of C but there's some
> differences from the language design perspective:
>
> 1) C doesn't _require_ (does it?) that the linker not perform that
> type check. I could define an object format and linker that would
> perform it and still have a standard-conforming C implementation.
>
> Java _requires_ that the linker not perform the exception check.
> There isn't even enough information in class files to permit
> a link-time check, and, unlike C, a single standard "object file"
> format is an important part of how the language is supposed to be
> used.
If you use unchecked exceptions (the ones you don't have to put in your
throws line) this is even more true.
I can create a new exception, make it unchecked and throw that from any
library method I want, without a compiler making any fuss about it.
Notice also that C# uses _only_ unchecked exceptions.
--
Thomas Zander
pgpZFTHrpW7xq.pgp
Description: PGP signature
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, (continued)
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, Tom Lord, 2003/10/22
- [Gnu-arch-users] Re: [OT] Java is fun!, zander, 2003/10/22
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, Tom Lord, 2003/10/22
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, Thomas Zander, 2003/10/23
- [Gnu-arch-users] Re: [OT] Java is fun!, Miles Bader, 2003/10/23
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, Momchil Velikov, 2003/10/23
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, Tom Lord, 2003/10/23
- [Gnu-arch-users] Re: [OT] Java is fun,
zander <=
- Re: [Gnu-arch-users] Re: [OT] Java is fun!, Mark A. Flacy, 2003/10/24
- Re: [Gnu-arch-users] Nit, Robin Farine, 2003/10/22
- Re: [Gnu-arch-users] Nit, Andrew Suffield, 2003/10/22
- Re: [Gnu-arch-users] Nit, Tom Lord, 2003/10/22
- Re: [Gnu-arch-users] Nit, David Brown, 2003/10/22
- Re: [Gnu-arch-users] Nit, Neal D. Becker, 2003/10/22
- Re: [Gnu-arch-users] Nit, Robin Farine, 2003/10/22
- error_t (was Re: [Gnu-arch-users] Nit), Tom Lord, 2003/10/22
- Re: error_t (was Re: [Gnu-arch-users] Nit), Robin Farine, 2003/10/23
- Re: error_t (was Re: [Gnu-arch-users] Nit), Tom Lord, 2003/10/23