[Mathlib-commitlog] SF.net SVN: mathlib:[622] JMathLib/trunk/src/jmathlib/core/tokens/ VariableToke
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-05 15:08:34
|
Revision: 622
http://mathlib.svn.sourceforge.net/mathlib/?rev=622&view=rev
Author: st_mueller
Date: 2009-01-05 15:08:24 +0000 (Mon, 05 Jan 2009)
Log Message:
-----------
changed handling of global variables
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java
Modified: JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java 2009-01-05 15:06:37 UTC (rev 621)
+++ JMathLib/trunk/src/jmathlib/core/tokens/VariableToken.java 2009-01-05 15:08:24 UTC (rev 622)
@@ -151,7 +151,7 @@
return ((MathLibObject)getVariable(name).getData()).getFieldData(fieldName);
//}
}
- else if( !getVariables().isVariable(name) )
+ else if( getVariable(name) == null )
{
// variable is not yet defined (e.g. user typed sin(a) and "a" is unknown)
// or it is a function
@@ -248,7 +248,7 @@
{
ErrorLogger.debugLine("Variable data = NULL");
- /* display the result of this variable in the user console*/
+ // display the result of this variable in the user console
if (isDisplayResult())
getInterpreter().displayText(name +" = []");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|