You are required to read and agree to the below before accessing a full-text version of an article in the IDE article repository.

The full-text document you are about to access is subject to national and international copyright laws. In most cases (but not necessarily all) the consequence is that personal use is allowed given that the copyright owner is duly acknowledged and respected. All other use (typically) require an explicit permission (often in writing) by the copyright owner.

For the reports in this repository we specifically note that

  • the use of articles under IEEE copyright is governed by the IEEE copyright policy (available at
  • the use of articles under ACM copyright is governed by the ACM copyright policy (available at
  • technical reports and other articles issued by M‰lardalen University is free for personal use. For other use, the explicit consent of the authors is required
  • in other cases, please contact the copyright owner for detailed information

By accepting I agree to acknowledge and respect the rights of the copyright owner of the document I am about to access.

If you are in doubt, feel free to contact

Elemental Function Overloading in Explicitly Typed Languages


Publication Type:

Conference/Workshop Paper


Proc. 12th International Workshop of Implementation of Functional Languages


Elemental intrinsic overloading is used successfully in vector parallel and data parallel programming languages. It allows scalar operators to be applied to arguments of array type, where the semantics is a new array where every element is the result of applying the operator to the corresponding elements of the argument array. This type of overloading makes programs with extensive use of array operations easier to read, write and maintain. However, it is typically restricted to allow overloading only of built-in functions and defined only for operators on one parallel data type, mostly arrays. In order to extend this feature to a larger class of languages, we propose elemental function overloading together with a polymorphic type discipline. Elemental function overloading, which is defined for all functions, also incorporates promotion of "scalar" values. In this paper we formalize the concept of elemental functional overloading in an explicitly typed polymorphic language and present an algorithm for resolving this overloading. We also make a preliminary study of elemental function overloading in an implicitly typed polymorphic language with type inference.


author = {Claes Thornberg and Bj{\"o}rn Lisper},
title = {Elemental Function Overloading in Explicitly Typed Languages},
editor = {Markus Mohnen, Pieter Koopman},
pages = {31--46},
month = {September},
year = {2000},
booktitle = {Proc. 12th International Workshop of Implementation of Functional Languages},
url = {}