Definition: An object encapsulates data and provides ways of manipulating that data. Every object is a member of class.
This is a very standard view of an object in computer languages.
One of the major concepts of COM is that an object may have multiple interfaces. Because Carapace script was designed to make COM easier, it too supports multiple interfaces for an object.
Definition: The class of an object is the definition of what that object can do i.e. it defines what the object 'looks' like.
All the 'real' information within a class is held within its collection of interfaces.
Carapace contains several built-in object classes as well as allowing you to define your own.
Definition: An interface is a view onto an object. The interface is simply a collection of properties and methods. The only way of accessing a Carapace object is through one of its interfaces.
Definition: A property is an attribute of an object. Every Carapace property has a class.
Definition: A method is simply a function which has access to the properties defined on that interface.
Definition: A function takes arguments and returns a value. The function may modify its arguments and it may modify global state.
The simplest sort of functions simply return a value and have no other side effects.
Definition: A type library is a file containing information about on COM objects. It is a file readable by COM defining classes and their interfaces.
Definition: A ProgID (short for Programmatic Identifier) is a human-readable name used to identify a class. For instance, both the ProgID
InternetExplorer.Applicationand the GUID
{0002DF01-0000-0000-C000-000000000046}
identify the class for Microsoft's browser.
| Contents | Index | Current topic: objects | Related topics: functions |