
Steven Watanabe wrote:
Eric Niebler wrote:
Steven Watanabe wrote:
I can imagine wanting one domain to treat expressions in another domain as terminals. Specifically, I am thinking of using lambda in another domain that expects function objects.
Could you show some pseudo-code for your DSEL? What support from Proto do you think you'll need?
Sorry. I should have said that I can see the possibility of using lambda... It may be sufficient to wrap such expressions in lit(). (Is there any issue with putting an expr in a terminal?) I'll try to think of something more concrete.
There's no problem with putting an expression in a terminal, except that Proto algorithms like matches and deep_copy won't recurse into it. -- Eric Niebler Boost Consulting www.boost-consulting.com