From: Daryle Walker (darylew_at_[hidden])
Date: 2001-07-05 12:29:08
on 7/5/01 12:57 AM, Vesa Karvonen at vesa.karvonen_at_[hidden] wrote:
> The C preprocessor is basically a functional language which has some severe
> limitations. It is possible to simulate many functional programming idioms
> using the C preprocessor. For instance, it is possible to simulate recursion,
> tuples, lists, and even higher order functions, but each of these have severe
> You can do many fun things with the preprocessor. For example:
> turns into:
> 2 3 - 5 - 7 - - - 11 - 13 - - - 17 - 19 - - - 23 - - - - - 29 - 31
I don't know whether to be proud or scared.
What does "PRIME" look like? Does it depend on some top limit, or can it
process all the way to ULONG_MAX?
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk