From: Archie Cobbs (archie@whistle.com)
Date: Fri Dec 18 1998 - 18:52:29 EST
Godmar Back writes:
> As a principle, I believe it's bad programming practice to attempt to
> allocate zero bytes, and I would like our allocator to flag such attempts.
OK, I don't mind doing that. However, allowing malloc(0) often
makes the code cleaner. For the same reason that allowing realloc(NULL, ...)
makes code cleaner.
But if in the context of kaffe, 0 bytes should never be being
allocated by anyone, then we should trap that condition with
an assert().
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:23 EDT