On Fri, Aug 19, 2011 at 01:45:46PM +0200, Maarten Sneep wrote:
> 
> The fact that to C++ code is simple doesn't matter. #! supports
> scripts: text files that start with #! and follow on with an
> interpreter for the rest of the script. This tells BBEdit which tool
> to use to run the script. Compiled programs work differently, and
> cannot be placed in #!.

Well, close. #! is Unix convention for signaling the path to an
interpreter. If one happens to have a c++ interpreter, then so be it.

I don't know, there may well be a command line syntax to g++ instructing
it to compile and run the remainder of the file and discard the
generated intermediate and final executable after. Or as you say a
script wrapper could be created to do just that:

> Create a wrapper script around the tool, and run it from there, just
> like any other tool. That assumes the second use case.

-- 
David Kelly N4HHE, [email protected]
========================================================================
Whom computers would destroy, they must first drive mad.

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to