p1076_chap_04

In this case the function name must denote a function

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: note a function whose single parameter is of the type of the formal and whose result is the type of the corresponding actual. Such a conversion function provides for type conversion in the event that data flows from the formal to the actual. Alternatively, the formal part of a named element association association element43 may be in the form of a type conversion, where the expression to be converted is the formal designator itself, if and only if the mode of the formal is out, inout, buffer, or linkage, and if the actual is not open. In this case, the base type denoted by the type mark must be the same as the base type of the corresponding actual. Such a type conversion provides for type conversion in the event that data flows from the formal to the actual. It is an error if the type of the formal is not closely related to the type of the actual. (See 7.3.5.) Similarly, the actual part of a (named or positional) element association association element44 may be in the form of a function call, where the single argument of the function is the actual designator itself, if and only if the mode of the formal is in, inout, or linkage, and if the actual is not open. In this case, the function name must de...
View Full Document

This note was uploaded on 09/09/2009 for the course EECS 318 taught by Professor Saab during the Fall '01 term at Case Western.

Ask a homework question - tutors are online