Barth:<div><br></div><div>Yes, there is a distinction to be made between an interpreted environment, say, GHCi, and instantfpc, which is simply a compiler wrapper just advanced enough to let you ./ your Pascal programs. With a little more work, instantfpc could become an interpreted environment.<br clear="all">
<div><br></div><div>I'll see if I can patch the fpc code to add shebangs as comments.</div><div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
<br><div class="gmail_quote">On Sat, Oct 15, 2011 at 4:52 PM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 15.10.2011 19:56, Andrew Pennebaker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, software bloat is to be avoided. In the simplest terms, I'm asking<br>
for fpc to consider shebangs as comments. That little syntactical<br>
addition wouldn't bloat fpc by much at all, but it would allow the same<br>
code to be compiled by fans of fpc, and interpreted by fans of instantfpc.<br>
</blockquote>
<br></div>
You are aware that InstantFPC isn't interpreting the source file in the sense of e.g. a Basic interpreter? It only strips the shebang and invokes FPC with the parameters passed in the shebang. Afterwards the resulting executable is started using the parameters that were passed when invoking the script.<br>
<br>
If you still want FPC to ignore a shebang on the first line, you are always welcome to provide a patch and then it can be discussed whether this patch should be included in trunk.<br>
<br>
Regards,<br><font color="#888888">
Sven</font><div><div></div><div class="h5"><br>
______________________________<u></u>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>