Listing 2: Using eval to trap errors.
清单2:使用eval来捕获错误。
Perl provides the eval function for that purpose.
Perl为此提供了eval函数。
The most common is using its read-eval-print-loop (REPL).
其中最常用的一种方法是使用它的REPL(read-eval-print-loop)。
Without the conversion, the eval function basically does nothing.
无需转换的话,eval函数基本上不做任何事情。
The eval function permits the run-time evaluation of a string of code.
eval函数允许字符串代码的运行时计算。
If your metaprogramming requires eval, it's subject to the same requirements.
如果你的元编程需要eval,那它也必须遵循相同的要求。
Note that the eval-concat in Listing 7 only partially solves our problem.
请注意,清单7中的eval - concat仅仅是解决了我们的部分问题。
As a consequence ClojureScript lacks eval or other types of runtime code loading.
因此,ClojureScript缺少eval和其他类型的运行时代码加载能力。
Note: Ideally you shouldn't use eval(), since it can be used to execute arbitrary text.
注意:理想情况下不应该使用eval(),因为它可用于执行任意格式的文本。
The LLVM IR interpreter was investigated in order to interpret faster #eval expressions.
为了更快解释#eval表达式,研究了LLVMIR解释器。
Many script engines maintain state of global variables and functions between calls to eval().
许多脚本引擎在eval()调用之间维持全局变量和函数的状态。
Line 5 USES the eval statement, which is one of the most powerful features of dynamic languages.
第5行使用eval语句,它是动态语言的最强大的特性之一。
As you write more and more test cases, you will find that eval blocks are very useful for many tests.
当您编写越来越多的测试用例时,将发现对于许多测试,eval块很有用。
Instructions embedded in a JSON data block and processed by the eval function are executed immediately.
JSON数据块中嵌入的、通过eval函数处理的指令将立即被执行。
JSConsole is a tool in a similar vein as Weinre, albeit more focused on the console output and eval.
JSConsole是一个风格和Weinre类似的工具,它更多地关注于控制台输出和代码求值。
When your code calls a script engine's eval method, the engine's default bindings of keys and values are used.
当代码调用脚本引擎的eval方法时,将使用引擎默认绑定的关键字和值。
I also predict at least one major security breach as a direct result of passing JSON data to the eval function.
我还预料将出现至少一次由于向eval函数传递JSON数据而造成的重大安全问题。
The eval statement in Listing 3 will execute whatever code the server returns, so there is a security risk here.
清单3中的eval语句将执行服务器返回的所有代码,因此这里存在安全风险。
We can instruct the shell to execute the output commands which ssh-agent displays using the shell's eval command.
使用eval命令可以指示shell执行ssh - agent显示的输出命令。
All script-engine eval methods declare they throw a ScriptException, so your code needs to handle it appropriately.
所有脚本引擎eval方法都声明抛出一个ScriptException,因此我们的代码需要适当处理这些异常。
To exploit this, attackers send malformed JSON objects to these libraries so the eval function executes their malicious code.
要利用这点,攻击者可以向这些库发送畸形的JSON对象,这样eval函数就会执行这些恶意代码。
Method and block bodies can be compiled "completely", so it's possible to use define_method and friends even when eval isn't available.
方法和块能被“完全”编译,因此可以在eval不可用时使用define_method等一系列方法。
From that point forward I used eval when necessary; however, I was careful to keep an eye toward using it as efficiently as possible.
从那时开始,我只在必要的时候才使用eval,而且我非常注意如何以更有效率的方式来使用eval。
You can, however, supply your own Bindings object on an eval call to restrict which variables and objects are visible to that specific script.
但是,您可以为eval调用提供自己的Bindings对象,以限制哪些变量和对象对于该特定脚本可见。
This pair of methods demonstrates that script engines can maintain a state of application components and make that state available during subsequent calls to the engine's eval method.
这两个方法演示了脚本引擎可以维持应用程序组件的状态,并且能够在后续的eval方法调用过程中使用其状态。
eval有别名。
It seemed that the extracellular matrix (ECM) proteins adsorbed onto the EVAL surface might have a protective role in the cellular aging process.
表明吸附到EVAL表面的细胞外基质蛋白可延缓细胞的衰老进程。
On the other hand, a Live Eval session affords a more accurate glimpse of what it's like to use a full-blown Linux distribution in a standard working environment.
另一方面,LiveEval会话使我们可以更精确地看到在标准的工作环境中使用一个功能齐全的Linux分发版的情况。
By using simulation experiments, TGA method and Rock-Eval analysis, the potential of kerogen for oil generation was measured and compared with that determined by Tissot.
本文还用实验模拟、热重、热谱等方法测定了干酪根的生油潜量,并与蒂索确定的生油潜量进行了比较研究。
By using simulation experiments, TGA method and Rock-Eval analysis, the potential of kerogen for oil generation was measured and compared with that determined by Tissot.
本文还用实验模拟、热重、热谱等方法测定了干酪根的生油潜量,并与蒂索确定的生油潜量进行了比较研究。
应用推荐