<div dir="ltr">2008/9/27 Claes Wikstrom <span dir="ltr"><<a href="mailto:klacke@hyber.org">klacke@hyber.org</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Robert Virding wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am generating compiled erlang code on the fly without saving using files (using LFE) and need to load the compiled binary into the system. Now, I know how to do myself "by hand" but I would prefer to go through the normal code loader to keep it all clean.<br>
</blockquote>
<br></div>
I have a similar situation in yaws, however I chose to<br>
actually write the .erl file. In retrospect this has been<br>
very good for debugging over the years.</blockquote><div><br>Yes, I do the same in leex for two reasons:<br><br>- You can distribute the generated scan module to users without leex.<br>- It is easier to print Erlang code than to build it, at least I think so.<br>
<br>Here the problem was to not use files, and generating LFE is easier than printing it. I have an option to print the generated module if necessary.<br><br>Robert<br><br></div></div></div>