Re: WTF? How can this work?
Re: WTF? How can this work?
- Subject: Re: WTF? How can this work?
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 20 Aug 2001 02:43:21 -0700
On Sunday, August 19, 2001, at 06:46 PM, Chris Gehlker wrote:
On 8/19/01 3:07 AM, "Ondra Cada" <email@hidden> wrote:
2nd BUT: security: if I am using an immutable class and I make a bug of
using is as if it were a mutable one, I suppose the app would stop and
write
a decent info to console!
I can't agree here. I don't want ANY error checking overhead on
fundamental
methods of the fundamental containers.
You're in luck, because there isn't any error checking on the
fundamental containers. If you want an array with no bounds checking,
just say:
id unsafeArray[];
and then wait for somebody to exploit the buffer-overflow vulnerability
in your code.
NSArray and the like aren't the fundamental containers of the language,
they're much richer, safer, and easier to use.
-jcr
[Objc retain];