Patent · US Expired

Method for object construction in a compiler for an object-oriented programming language

US5371891A · kind A · utility

47Cited by
4References
75Claims
0Family size

Assignee

Inventors

Key dates

Filing dateApr 9, 1992
Grant dateDec 6, 1994
Priority date
Expiry dateApr 9, 2012

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/4488
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

An improved method and system for implementing constructors and destructors in a compiler for an object-oriented programming language is provided. In a preferred embodiment of the present invention, a construction displacement value is added to the this pointer for a virtual function that is invoked by a constructor for a class that virtually inherits a base class. The construction displacement value corresponds to the difference between the offset of an occurrence of a virtually inherited class within an instance of the base class and the offset of the occurrence of the virtually inherited class from the occurrence of the base class within an instance of a derived class that inherits the base class.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.