Re: phoenix modifying scoped environment
Joel de Guzman <[email protected]> Mon, 28 Jun 2010 07:38:07 +0800
| Newsgroups | gmane.comp.parsers.spirit.devel |
|---|---|
| Message-ID | <[email protected]> |
On 6/28/10 12:54 AM, Andrey Asadchev wrote: > hello. > > I have something that looks like this: > > let(k = 0)[custom_expression[ cout << k ] ]; > > Where custom_expression eval looks like this: > let(j = 0)[f].eval(env); // f is "cout << " > > what been trying to do is introduce some local variables into the > environment inside custom_expression. > However, my approach did not work, seems like let declaration of k gets > lost in custom_expression let expression (however env does have it) > > How can I accomplish this? It's hard to tell without some real code. Can you minimize the problem in a cpp file I can try? Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first