Category:Inform 7

From Rosetta Code
This page is a stub. It needs more information! You can help Rosetta Code by filling it in!
Language
Inform 7
This programming language may be used to instruct a computer to perform a task.
Official website
Execution method: Compiled (bytecode)
Parameter passing methods: By value
Type safety: Safe, Unsafe
Type strength: Strong
Type compatibility: Nominative
Type expression: Implicit, Explicit
Type checking: Dynamic, Static
Lang tag(s): inform7
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Inform 7.

Inform 7 is a language for creating interactive fiction, with a syntax similar to English. Although it has some object-oriented features, it is primarily rule-based: most code takes the form of "rules", which are placed into rulebooks, which are invoked by the library in response to player commands and other events.

An Inform 7 program also contains a set of initially constructed objects, called the world model. These objects are organized into a hierarchy of classes (called "kinds"), although there is no method invocation; objects only contain data. The relations between objects are modeled at a high level: physical relationships such as containment (the water is in the glass) and supporting (the glass is on the table) are predefined, and new relationships such as desire (the troll wants the diamond) or lock-fitting (the bronze key fits the bronze lock) can be created.