[top] [up] [next]

Object-Oriented Prolog


To make programming in prolog easier and the results more re-usable several extensions were added to Trinc-Prolog to make object-oriented programming possible. These extensions are not part of the ISO prolog standard and they may differ from other object-oriented prolog extensions.

  1. Introduction object-oriented prolog
  2. Declaring classes
  3. Defining class methods
  4. Inheritance and forward declaration
  5. Creating new instances
  6. Sending messages to instances
  7. Deleting instances
  8. Tips for using instances
  9. Saving and loading of instances
  10. Operators and predicates for the OO extensions
  11. Stack class example

[top] [up] [next]

Arrow.gif (1632 bytes) New in R3B: it is possible with the operator unique_name/2 to give each instance a unique name
 

info@trinc-prolog.com