Skip navigation.
 
mlRe: Dynamic message typing problem
FROM : Jens Alfke
DATE : Sat May 17 02:11:48 2008

On 16 May '08, at 2:34 PM, Bill Bumgarner wrote:

> An almost universal rule of Mac OS X programming: If you see a 
> compiler warning, you are doing something wrong.


Amen. One of the first things I do to any Xcode project I work on is 
turn on "Treat warnings as errors" in the build settings. For some 
reason almost all of Obj-C's type-checking errors appear as warnings, 
and you ignore those at your peril.

(I also recommend adding "-Wall" to the "Other warning flags" field. 
That enables [almost] all warnings. Yes, you'll sometimes have to 
tweak correct code that triggers a warning; but that's much less time 
consuming than tracking down a bizarre runtime problem that could have 
been detected by the compiler if you'd let it.)

—Jens

Related mailsAuthorDate
mlDynamic message typing problem Julius Guzy May 15, 03:19
mlRe: Dynamic message typing problem Michael Vannorsdel May 15, 13:41
mlRe: Dynamic message typing problem Julius Guzy May 16, 17:21
mlRe: Dynamic message typing problem Michael Vannorsdel May 16, 18:12
mlRe: Dynamic message typing problem Julius Guzy May 16, 19:13
mlRe: Dynamic message typing problem Scott Ribe May 16, 20:11
mlRe: Dynamic message typing problem Julius Guzy May 16, 23:17
mlRe: Dynamic message typing problem Bill Bumgarner May 16, 23:34
mlRe: Dynamic message typing problem Scott Ribe May 16, 23:52
mlRe: Dynamic message typing problem Michael Vannorsdel May 17, 00:06
mlRe: Dynamic message typing problem Scott Ribe May 17, 00:39
mlRe: Dynamic message typing problem I. Savant May 17, 01:05
mlRe: Dynamic message typing problem Julius Guzy May 17, 01:51
mlRe: Dynamic message typing problem Bill Bumgarner May 17, 01:58
mlRe: Dynamic message typing problem Jens Alfke May 17, 02:11
mlRe: Dynamic message typing problem I. Savant May 17, 02:21
mlRe: Dynamic message typing problem Julius Guzy May 17, 13:55
mlRe: Dynamic message typing problem Michael Vannorsdel May 17, 15:40