Boost logo

Boost Users :

Subject: Re: [Boost-users] how are the iterative/looping mechanism implemented in boost preprocessor?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-05-24 22:07:46


AMDG

On 05/24/2011 02:54 PM, Marc Poulin wrote:
> The C++ preprocessor expands macros ***recursively***.
>
> Recursion is the secret. This is also how functional languages (eg. Haskell)
> implement iteration without having looping control structures like "for" or
> "while".
>

Actually the preprocessor doesn't support recursion.

In Christ,
Steven Watanabe




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net