Oxbow code: Difference between revisions

Content deleted Content added
Harej bot (talk | contribs)
m using discuss= in merge template (for syntax standardization)
m Minor corrections done
Line 5:
Such code is normally removed unless sufficiently amusing or educational.
 
Similarly, variables and data structures can be left around after the last code that used them has gone, though these are more commonly called [[unused variables|unused]] or [[unreferenced variable]]s.
 
The term is taken by analogy with [[oxbow lake]]s which are formed in nature when
Line 16:
(from
[http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?rev=1.46&root=gnash&view=markup gnash/server/asobj/Global.cpp 1.46])
<source lang="cppCpp">
static void
as_global_escape(const fn_call& fn)
{
// List of chars we must convert to escape sequences
const string hexdigitsstrHexDigits = "0123456789ABCDEF";
string inputstrInput = fn.arg(0).to_string();
URL::encode(inputstrInput);
fn.result->set_string(inputstrInput.c_str());
}
</source>
In this, "hexdigits" is oxbow code (or oxbow data).
 
<!--Categories-->
 
[[Category:Source code]]