Subject: RE: Question: XSL & Dynamic Changes During Run-time
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Wed, 25 Feb 1998 10:10:39 -0800
|
>[Paul Prescod wrote:]
Global functions are global variables in JavaScript.
<title>test</title>
<SCRIPT>
function a(){
return 5;
}
document.writeln( a() )
function b(){
return 10;
}
a = b
document.writeln( a() )
</SCRIPT>
Tricky! This kind of manipulation would certainly be a side effect. So
even global functions should be authored as ?constants?, by which I mean
that the function, once defined, should not be changed.
Jonathan Marsh
phone 425.703.4591
<mailto:jmarsh@xxxxxxxxxxxxx> jmarsh@xxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|