Re: [RFC PATCH] explicitly mark recursion count

From: Valdis . Kletnieks
Date: Wed Jun 02 2004 - 14:34:58 EST


On Wed, 02 Jun 2004 20:58:32 +0200, =?iso-8859-1?Q?J=F6rn?= Engel said:

> Note the "in the most general case" part. You can get things right if
> you make some assumptions and those assumptions are actually valid.
> In my case the assumptions are:
> 1. all relevant function pointers are stuffed into some struct and
> 2. no casts are used to disguise function pointer as something else.

That seems to be reasonable. And if we're aliasing, or shadowing, or casting
function pointers to something else, or using a union to overlay it, that's
just a time bomb waiting to explode. At the very least, such code should
require a large "Danger! Here be large and nasty dragons!" marker.

Attachment: pgp00000.pgp
Description: PGP signature