[comp.os.minix] C Abuse

Tyler Sarna <tsarna@polar.bowdoin.edu> (05/18/91)

In a recent message, Bruce Evans discussed an interesting bug in
bcc that causes function declarations like foo(int bar) to have
two parameters, foo and bar.

I've seen C compilers that permit code like the following:

	long long(void *x)
	{
		...
	}

One can then say:

	foo = (long)long(long);

If the compiler permits initialization of variables with
non-constants, like gcc or C++ compilers (this doesn't work with
GCC, it doesn't allow the first form above, and I don't know if
cfront would allow it), then one could presumably say

	int int = (long)long(long);

:-)

--
Tyler "Ty" Sarna                       tsarna@polar.bowdoin.edu

     "Navy. It's not just a job, it's $98.76 a week." -SNL