<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote">
<div><br></div><div>I would like the parser to effect some side effects. For this purpose, I tried including the parser mixin into a class, but I got a strange error saying:</div><div><br></div><div>Error: need 'this' to access member parse</div>


<div><br></div></div></blockquote><div><br></div><div>Ok. I see my folly. At compile time, there would not be any "this" since the class has not been instantiated yet.</div><div><br></div><div>I will have to think of other solutions. Basically, I am trying to use the parser to create functions that I can use at run time. But I wanted to create two functions from the same parser. I have succeeded with creating one function. I do not want to create two separate parsers because each of these parsers would add to memory footprint of the compiler.</div>

<div><br></div><div>Any ideas? Maybe I could use tuples here?</div><div><br></div><div>Regards</div><div>- Puneet</div><div> </div></div>