Get or set type information for a function.
获取或设置一个函数的类型信息。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions provide controlled access to type information for a function. They encapsulate the way the information is stored for the function (although it is trivial to find out how it is done and where the information is)
这些功能提供了键入一个函数信息的受控访问。它们封装的方式,信息存储的功能(虽然它是微不足道的,找出它是如何做信息)
参数:func
the function whose type information is to be accessed
其类型信息的功能是要访问
参数:rewrite
a logical value. This controls whether the body of the function func is rewritten so that checks for the arguments and return type are added to the code and the appropriate actions are taken when the function returns control to the caller. This is necessary to get calls to return in the function to behave correctly and allow the return value to be validated.
一个逻辑值。这种控制无论是身体的功能func被改写,以便检查参数和返回类型被添加到代码,并采取适当的行动,当函数返回给调用者控制。这是必要的调用return在正确的行为,并允许进行验证返回值的函数。
参数:value
an object of class TypeSpecification-class
一个对象类TypeSpecification-class
值----------Value----------
typeInfo returns the type information associated with the function. typeInfo<- returns the modified function.
typeInfo返回类型与功能相关的信息。 typeInfo<-返回修改的功能。
作者(S)----------Author(s)----------
Duncan Temple Lang <duncan@wald.ucdavis.edu>