Subject: Re: Objective-C compiler NetBSD port available
To: None <port-i386@NetBSD.ORG>
From: Peter Simons <simons@rhein.de>
List: port-i386
Date: 10/03/1997 22:05:48
-----BEGIN PGP SIGNED MESSAGE-----

Ted Lemon <mellon@hoffman.vix.com> writes:

 > Just out of curiosity, how does this win over just using gcc's
 > Objective C compiler?

Well, the first big advantage is that it actually works, while the gcc
that comes with NetBSD does not. :-)) *ducking and running*

Seriously though, it doesn't really make a difference whether you use
objc or gcc. gcc is probably(!) a bit more reliable with complicated
code and it is supported by more users than objc is. objc does have a
few nice features, though.

For one, it can compile an Objective-C file into a plain ANSI-C
source. (In fact it does that all the time, since it is a
pre-compiler.) This might be useful for people who don't want to
distribute Objc-C sources, because many people can't compile them.

Futhermore objc supports code blocks and exceptions, what gcc doesn't
do at all.

Last but not least, objc has in-built support for object garbage
collection --- what can be patched into gcc, but isn't included in the
vast majority of installations, I'd say.

I personally use gcc for development and occasionally I check whether
my classes do compile with objc. If they do, that's a good test
whether the code is portable or not.

	-peter

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQCVAwUBNDVQGw9HL1s0103BAQGt6AP+IH5zwa7T4ruaWg43IoGp1szoT3ZpgzXT
a8uD3p/WxkOFt0mRrCnoGbS1IKmllNHwXWU68kQw11ub0gSOkocpBc01tVcFG2oD
RF96WxACT+MZX6PtWnuTaJIj+Zt8CbtlvWYrQHlpJm1Kk5b2QTfd5p/pMa6zG6KL
Xz8Evke+9bI=
=V5Zs
-----END PGP SIGNATURE-----