diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-02 02:10:27 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-02 02:10:27 +0000 |
commit | ed49e1f7b097a3cb1a048914edecbeebaacc07e3 (patch) | |
tree | 2719b1ab74c01099cd16cc4361da9d914700ab34 /etc | |
parent | 799451fe0b0b09d1f77be7e881bf3e2b5f33f360 (diff) | |
download | ATCD-ed49e1f7b097a3cb1a048914edecbeebaacc07e3.tar.gz |
added section on scripts
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ACE-guidelines.html | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/etc/ACE-guidelines.html b/etc/ACE-guidelines.html index 0f616c1aff2..a2468ac825c 100644 --- a/etc/ACE-guidelines.html +++ b/etc/ACE-guidelines.html @@ -461,7 +461,7 @@ bgcolor="#ffffff"> } catch (exe_foo &foo) { - cerr << "execption caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ << endl; } cout << endl << "Second exception" << endl << endl; @@ -471,7 +471,7 @@ bgcolor="#ffffff"> } catch (exe_foo foo) { - cerr << "execption caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ << endl; } cout << endl << "Third exception" << endl << endl; @@ -481,7 +481,7 @@ bgcolor="#ffffff"> } catch (exe_foo &foo) { - cerr << "execption caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ << endl; } cout << endl << "Fourth exception" << endl << endl; @@ -491,7 +491,7 @@ bgcolor="#ffffff"> } catch (exe_foo foo) { - cerr << "execption caught: " << foo.data_ << endl; + cerr << "exception caught: " << foo.data_ << endl; } return 0; @@ -504,14 +504,14 @@ bgcolor="#ffffff"> First exception constructor of exception called - execption caught: 0 + exception caught: 0 destructor of exception called Second exception constructor of exception called copy constructor of exception called - execption caught: 0 + exception caught: 0 destructor of exception called destructor of exception called @@ -520,7 +520,7 @@ bgcolor="#ffffff"> constructor of exception called copy constructor of exception called destructor of exception called - execption caught: 1 + exception caught: 1 destructor of exception called Fourth exception @@ -529,7 +529,7 @@ bgcolor="#ffffff"> copy constructor of exception called destructor of exception called copy constructor of exception called - execption caught: 1 + exception caught: 1 destructor of exception called destructor of exception called @@ -625,6 +625,34 @@ bgcolor="#ffffff"> <hr> +<h3>Script Guidelines</h3> +<ul> + <li>In general, it's best to write scripts in perl.<p> + + <li>Don't specify a hard-coded path to perl itself. Use + the following code at the top of the script to pick up + perl from the users <code>PATH</code>:<br> + <pre> + eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + </pre><p> + + <li>If your perl script relies on features only available + in never versions of perl, include the a statement similar + to the following:<br> + <pre> + require 5.003; + </pre> + + <li>Don't depend on <strong><code>.</code></strong> being + in the user's path. If the script spawns another executable + that is supposed to be in the current directory, be sure the + prefix its filename with <strong><code>.</code></strong>.<p> +</ul> + + +<hr> <h3>Software Engineering Guidelines</h3> <ul> <li><strong>Advise</strong>: Keep other developers informed of problems |