Subject: Re: [boost] [xint] Boost.XInt formal review (concrete complaint)
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2011-03-07 02:52:23


> How would the expression's code know anything about x, or have access
> to its allocated memory? If the template is operator+, you'd have to
> pass x to it somehow. If it's not, operator+ would have to allocate
> some memory for a temporary, wouldn't it?
>

x just have a operator= taking a interge_expression<X> type whcich
contains the whole a+b abstract syntax tree. From there, there is
countless techniques to iterate over the AST, transform it or evaluate
it as code.