You can also use the put and get methods of the scope object. Notice that the variable names are specified as strings.
还可以使用scope对象的put方法和get方法。
Because the inner function holds a reference to the outer function's variables, the scope object with property a will not be garbage collected.
由于内部函数持有到外部函数的变量的引用,所以这个带属性a的范围对象将不会被垃圾收集。
For example, the scope object name of the sample IWidget should become SampleIWidget_100 and SampleIWidget_200 for version 1.00 and 2.00 respectively.
例如,示例IWidget的范围对象名称对于版本1.00和2.00来说应该分别变成SampleIWidget _ 100和SampleIWidget _ 200。
A search scope can be retrieved using the ScopeSearchService: obtain the scope object by name, and use the search method to query the documents that belong to the scope.
使用ScopeSearchService可以检索搜索范围:按名称获取Scope对象,并使用搜索方法查询属于该范围的文档。
The user variable is created and referenced by appending a period and name to the name of the scope object. For example, if a button has the following server-side onclick script.
通过在scope对象名称后附加句点和名称来创建并引用用户变量。
When a closure "captures" a variable it "lifts" the variable out of its local scope and effectively moves it into an anonymous object.
当一个闭包“捕获”一个变量时,它就会将这个变量提取出它的本地范围,移到一个匿名对象里。
To accomplish this effect, resolve these two issues: First, modify the object pool so that it understands the concept of scope.
为了实现这种效果,要解决两个问题:首先,修改对象池,让它理解范围的概念。
When a transaction starts, the scope key for this transaction is added to this context object.
当一个事务开始时,这个事务的范围键被添加到这个上下文对象中。
Once the context object goes out of scope, which like a database connection should be very quickly, the data objects essentially become read-only.
就像数据库连接那样应该非常快,一旦该上下文对象超出范围,数据对象实质上就进入只读状态。
The debugging information is stored as part of the object file's symbol table and thus is limited in complexity and scope.
调试信息是作为对象文件的符号表的一部分进行存储的,因此复杂性和范围是有限的。
Use it to notify object managers that a session scope has ended (or is about to end) and to release the corresponding objects.
使用它通知对象管理器会话范围已经结束(或即将结束),应该释放对应的对象。
To retrieve an object from the object pool, provide a scope type and a scope key.
为了从对象池获取对象,需要提供一个范围类型和一个范围键。
Finally, notice that references to the GUI components need to be kept available in the object scope so they can be accessed in the synchronization methods.
最后,请注意对GUI组件的引用在对象范围内必须保持可用,这样才能在同步方法中访问这些组件。
Use it to notify object managers that an application scope has ended and to release the corresponding objects.
使用它通知对象管理器应用程序范围已经结束,应该释放对应的对象。
If you identify the intended scope of each object, you might specify to automatically release objects at the end of the scope.
如果标识出每个对象的范围,就可以指定在这个范围结束时自动释放对象。
To facilitate this approach, a context object is needed to store scope information.
为了帮助实现这种方式,需要用一个上下文对象存储范围信息。
The object manager associates the scope information to each object being retrieved.
对象管理器把范围信息与获取的每个对象关联起来。
The type of report object you are working with will determine the scope of items you can add to the report object at once.
您所使用的报表对象的类型会决定您能一次添加到报表对象的项目范围。
Different object managers may manage objects belonging to the same scope.
不同的对象管理器可能管理属于同一范围的对象。
These rules control both the relationships allowed between scopes and the allowed references from an object in a scope to objects in other memory areas.
这些规则控制了作用域之间的许可关系,以及作用域中的对象对其他内存区域中的对象的引用。
Use it to notify the object manager that a request scope is about to end and to release the corresponding objects.
使用它通知对象管理器请求范围即将结束,应该释放对应的对象。
A custom scope typically corresponds to a backing store that can manage object instances.
某个自定义作用域通常与能够管理对象实例的后端存储相对应。
Misuse of the scope for object attributes (global versus local).
对象属性范围(全局还是本地)的使用不当。
Scope (request/session) specifies where to look for the object.
Scope (请求/会话)指出到哪里查找对象。
Scope rules help Python figure out which object you want to use.
作用域规则可帮助Python判断您想使用的对象。
The use of categories reinforces my previous recommendation: it limits the scope of changes to Object to the body of the use clause in the easyb DSL.
categories的使用加强了我之前的建议:它将对Object的修改范围限制为easybdsl中use子句。
For example, in the web-tier a Spring-managed object may be bound to 'request' or 'session' scope.
举个例子来说,在web层,一个Spring管理对象可能捆绑到request或session的范围。
We set the scope of this object to application, as only one instance is needed per application.
我们将此对象的范围设置为application,因为每个应用程序只需要一个此对象的实例。
One of Perl's advantages over straight c, of course, is that it does heap management on objects, so that when an object passes out of scope, it will be destroyed.
当然,Perl相比直接的c语言的优势之一是在于它确实可以在对象上进行堆积管理,这样当一个对象超出范围时,就会被销毁。
One of Perl's advantages over straight c, of course, is that it does heap management on objects, so that when an object passes out of scope, it will be destroyed.
当然,Perl相比直接的c语言的优势之一是在于它确实可以在对象上进行堆积管理,这样当一个对象超出范围时,就会被销毁。
应用推荐