×

Type error checker for type-free or polymorphic computer language

  • US 5,748,966 A
  • Filed: 12/30/1994
  • Issued: 05/05/1998
  • Est. Priority Date: 12/30/1994
  • Status: Expired due to Term
First Claim
Patent Images

1. A system for detecting a run-time type error in a program prior to running the program whose source code being written in a programming language with imperative constructs and parametric polymorphic procedures, comprising:

  • an intermediate form translator for translating said source code including imperative constructs and the parametric polymorphic procedures into intermediate form representations;

    type representations having predetermined types including a locking type constructor and an unlocking type constructor, said locking type constructors locking said predetermined types for defining predetermined locked types so as to ultimately prevent run-time type errors associated with mutuality in relation to said imperative constructs, said unlocking type constructors unlocking said predetermined locked types; and

    a type checker in response to said intermediate form representations and the type representations for checking whether said predetermined locked types are free of substitution with an exact type so that said program will be free of said run-time type error, said exact type excluding a type equal to and more general than said predetermined locked types.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×