lispglobalvariable.java

来自「计算机代数系统」· Java 代码 · 共 30 行

JAVA
30
字号
package net.sf.yacas;/// Value of a Lisp global variable./// The only special feature of this class is the attribute/// #iEvalBeforeReturn, which defaults to #LispFalse. If this/// attribute is set to #LispTrue, the value in #iValue needs to be/// evaluated to get the value of the Lisp variable./// \sa LispEnvironment::GetVariable(), LispEnvironment::SetGlobalEvaluates()class LispGlobalVariable {  public LispGlobalVariable(LispGlobalVariable aOther)  {    iValue = aOther.iValue;    iEvalBeforeReturn = aOther.iEvalBeforeReturn;  }  public LispGlobalVariable(LispPtr aValue)  {    iValue.Set(aValue.Get());    iEvalBeforeReturn = false;  }  public  void SetEvalBeforeReturn(boolean aEval)  {   iEvalBeforeReturn = aEval;  }  LispPtr iValue = new LispPtr();  boolean iEvalBeforeReturn;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?