Recently designed programming languages provide mechanisms which support the use of procedural and data abstraction. In particular, most of them give the possibility of defining parametric data types. However this new feature affects procedure definitions, since parameters with partially specified type must be allowed. The paper tackles the problems generated by this generalization of procedures, by showing that parameter passing requires a pattern matcning mechanism. A proposal is made which keeps parameter passing and type checking separate, thus simplifying procedure calls. Furthermore the paper analyzes the ways in which operations can be associated with abstract data types and how operations can have access to the representation of their parameters. A construct for data abstractions is proposed, which achieves great generality by separating the two above aspects.

Passing parameter types in programming languages with data abstractions

Asirelli P;
1977

Abstract

Recently designed programming languages provide mechanisms which support the use of procedural and data abstraction. In particular, most of them give the possibility of defining parametric data types. However this new feature affects procedure definitions, since parameters with partially specified type must be allowed. The paper tackles the problems generated by this generalization of procedures, by showing that parameter passing requires a pattern matcning mechanism. A proposal is made which keeps parameter passing and type checking separate, thus simplifying procedure calls. Furthermore the paper analyzes the ways in which operations can be associated with abstract data types and how operations can have access to the representation of their parameters. A construct for data abstractions is proposed, which achieves great generality by separating the two above aspects.
1977
Istituto di Scienza e Tecnologie dell'Informazione "Alessandro Faedo" - ISTI
Programming languages
Data abstractions
File in questo prodotto:
File Dimensione Formato  
prod_422344-doc_150151.pdf

accesso aperto

Descrizione: Passing parameter types in programming languages with data abstractions
Tipologia: Versione Editoriale (PDF)
Dimensione 1.65 MB
Formato Adobe PDF
1.65 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14243/409968
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact