Generic representation of optional values
    9.
    发明申请
    Generic representation of optional values 审中-公开
    可选值的通用表示

    公开(公告)号:US20060015528A1

    公开(公告)日:2006-01-19

    申请号:US10891459

    申请日:2004-07-14

    IPC分类号: G06F17/00

    CPC分类号: G06F8/437

    摘要: A generic nullable type that is capable of representing null values for reference, value, and other types in a uniform manner is described. The nullable generic type includes at least two portions: a container portion and a Boolean member portion. The container portion can hold other objects of other types, including both reference and value types. The Boolean member portion indicates whether the type held by the container has a value or not. Specifically, when the Boolean member is true, the values of the general type held by the container are valid. When the Boolean member is false, the values of the general type are invalid or undefined to represent an unspecified or null condition. Stack memory usage for the nullable type, a comparison of two objects of the nullable type, and an example database manipulation using the nullable type are also described.

    摘要翻译: 描述了能够以均匀方式表示参考值,值和其他类型的空值的通用可空类型。 可空的通用类型包括至少两个部分:容器部分和布尔成员部分。 容器部分可以容纳其他类型的其他对象,包括引用和类型。 布尔构件部分指示容器持有的类型是否具有值。 具体来说,当布尔成员为true时,容器持有的通用类型的值是有效的。 当布尔成员为false时,通用类型的值无效或未定义,以表示未指定或空值。 还描述了可空类型的堆栈内存使用,可空类型的两个对象的比较以及使用可空类型的示例数据库操作。

    Concurrent handling of exceptions in received aggregate exception structure with supplied exception handlers and marking handled exceptions
    10.
    发明授权
    Concurrent handling of exceptions in received aggregate exception structure with supplied exception handlers and marking handled exceptions 有权
    在接收到的聚合异常结构中并发处理异常,并提供异常处理程序和标记处理的异常

    公开(公告)号:US08271768B2

    公开(公告)日:2012-09-18

    申请号:US12948564

    申请日:2010-11-17

    IPC分类号: G06F9/40

    摘要: Various technologies and techniques are disclosed for providing concurrent exception handling. When one or more exceptions are received from concurrent workers, one or more exception handler functions are supplied. For each respective exception in the exception results, determine if the respective exception is one of a kind of exceptions handled by the one or more exception handler functions. If the respective exception is one of a kind handled by the exception handler functions, then run a particular handler of the exception handler functions and mark the respective exception as handled. Any unhandled exceptions are then processed appropriately. In one implementation, a collection of input data is processed to produce a collection of output results, with the exceptions being interleaved with other output results. In another implementation, a particular exception is selected that represents the multiple exceptions. The selected one particular exception is then thrown.

    摘要翻译: 公开了用于提供并发异常处理的各种技术和技术。 当从并发工作者接收到一个或多个异常时,提供一个或多个异常处理函数。 对于异常结果中的每个异常,确定相应的异常是否是由一个或多个异常处理函数处理的一种异常之一。 如果相应的异常是由异常处理函数处理的异常之一,则运行异常处理函数的特定处理程序,并将相应异常标记为已处理。 然后适当处理任何未处理的异常。 在一个实现中,处理输入数据的集合以产生输出结果的集合,除了与其他输出结果交错。 在另一个实现中,选择表示多个异常的特定异常。 然后抛出所选的一个特殊异常。