Generic Specifications in CASL: An Alternative Proposal

Maura Cerioli
Gianna Reggio

21 May 1997

This document is available by FTP in various formats. It was converted to HTML using Hyperlatex 2.2.

Abstract

Our main criticism is that the current proposal for generic specifications is not standard and, especially, that it is very difficult to understand for the end users, who are used to programming languages, where the equivalent of generics (functions, procedures, subroutines...) have named parameters.

Contents

  • 1 Why to change?
  • 2 Our Proposal in a Nut Shell
  • 3 Related changes to the language
  • 4 Some examples
  • 5 Our Proposal More in Detail
  • 5.1 Parameter Typing
  • 5.2 Abstract Syntax
  • 5.3 Static Semantics
  • 5.3.1 PAR-TYPE
  • 5.3.2 Definition
  • 5.3.3 Instantiation
  • 5.4 Semantics
  • 5.4.1 PAR-TYPE
  • 5.4.2 GEN-SPEC
  • 5.4.3 Instantiation
  • Footnotes

  • CoFI Note: L-3 --DRAFT, Version 0.2-- 21 May 1997.
    Comments to cerioli@disi.unige.it