# Extended Pascal

> programming language

**Wikidata**: [Q130772809](https://www.wikidata.org/wiki/Q130772809)  
**Source**: https://4ort.xyz/entity/extended-pascal

## Summary
Extended Pascal is a standardized, feature-rich superset of the Pascal programming language defined by IEEE/ANSI Standard 10287. It adds modules, exception handling, and other constructs to the original Pascal while remaining fully backward-compatible.

## Key Facts
- IEEE/ANSI Standard 10287 (published 1987) formally defines Extended Pascal.
- Described by the same standard document: "IEEE/ANSI Standard for the Programming Language Extended Pascal."
- Instance of: programming language (Wikidata Q211417).
- Foldoc identifier: Extended+Pascal.
- Maintains full upward compatibility with standard Pascal (ISO 7185).

## FAQs
### Q: How does Extended Pascal differ from standard Pascal?
A: Extended Pascal adds modules, exception handling, structured constants, initializers, and a module system while keeping every legal Pascal program valid.

### Q: Is Extended Pascal still in use today?
A: It survives in niche embedded and educational projects, but mainstream development has shifted to Object Pascal/Delphi descendants; nevertheless, the IEEE standard remains in force.

### Q: Which compilers implement Extended Pascal?
A: Historically, the Prospero, VSI-Pascal, and TMT Pascal compilers claimed near-complete compliance; modern open-source efforts such as GPC (GNU Pascal) support most of the standard.

## Why It Matters
Extended Pascal represents the last major attempt to evolve classic Pascal through an official standards body rather than through vendor-specific extensions. By folding in modern 1980s language features—modules, exceptions, and better string handling—without breaking existing code, it demonstrated that a small, teachable language could scale to serious software-engineering needs. The standard gave universities and government agencies a vendor-neutral reference, ensuring Pascal’s relevance in safety-critical and educational environments even as C gained dominance. Today, Extended Pascal’s design choices influence Pascal derivatives and serve as a case study in backward-compatible language evolution.

## Notable For
- First Pascal dialect standardized by IEEE/ANSI rather than ISO.
- Introduced modular programming to Pascal without sacrificing simplicity.
- Only Pascal variant to require exception handling in its standard library.
- Maintained strict source-level compatibility with ISO 7185 Pascal.
- Influenced later Pascal-family languages such as Object Pascal and Delphi.

## Body
### Origins and Standardization
In 1987 the IEEE Computer Society, in cooperation with ANSI, published IEEE Std 10287, colloquially called Extended Pascal. The standardization committee—drawing on academic and industry members—aimed to remove Pascal’s perceived limitations for large-scale development while preserving its pedagogical clarity.

### Language Extensions
Extended Pascal’s headline additions include:
- Modules (separate compilation units with explicit import/export lists)
- Exception handling via try/except/finally blocks
- Constant and variable initializers
- Structured constants (arrays and records as constants)
- Relaxed ordering of declarations and statements
- Extended string facilities (variable-length strings)
- Set constructors with expressions
- Directives for conditional compilation

### Compliance and Implementations
The standard defines two levels of compliance: Level 0 (core language) and Level 1 (full module system and exceptions). Commercial compilers such as Prospero Pascal and TMT Pascal achieved Level 1 certification during the early 1990s. The GNU Pascal Compiler (GPC) pursued near-complete compliance until development slowed in the 2000s.

### Legacy
Although Extended Pascal never displaced C or C++, it remains the definitive reference for a portable, modern Pascal dialect. Safety-critical systems in avionics and medical devices occasionally cite IEEE 10287 for procurement requirements, ensuring the standard’s continued availability through IEEE.