# HG changeset patch # User Rik # Date 1459547812 25200 # Node ID 0d1bd2ede0c151f80d6d5b33323542cbcec93fe5 # Parent 683a1beee538fda9347183877d54c60442f0897b doc: Document that logical negation is written with a space ("! A"). * contrib.txi: Document that logical negation is written with a space "! A". diff -r 683a1beee538 -r 0d1bd2ede0c1 doc/interpreter/contrib.txi --- a/doc/interpreter/contrib.txi Fri Apr 01 14:55:13 2016 -0700 +++ b/doc/interpreter/contrib.txi Fri Apr 01 14:56:52 2016 -0700 @@ -361,8 +361,12 @@ @end example The Octave operator @samp{!} should be used for logical negation, rather than -@samp{~}. Comments should begin with the @samp{#} character, rather than -@samp{%}. +@samp{~}. The negation operator is written with a space between the operator +and its target, e.g., @code{! A}. Comments should begin with the @samp{#} +character, rather than @samp{%}. + +Any Built-In Self Tests or demos using the @code{%!test} or @code{%!demo} +syntax should begin two lines after the @code{endfunction} keyword. @node C++ Sources @section C++ Sources @@ -428,6 +432,9 @@ more readable, even if they are not necessary. Also, do not hesitate to put extra braces anywhere if it improves clarity. +The negation operator is written with a space between the operator +and its target, e.g., @code{! A}. + Declare variables just before they are needed. Use variables local to blocks---it helps optimization. Don't write a multi-line variable declaration with a single type specification and multiple variables. If