Parameter Passing Modes: In, Out, In-Out, and Lazy Evaluation

Описание к видео Parameter Passing Modes: In, Out, In-Out, and Lazy Evaluation

This video discusses the main modes of parameter passing semantics used in various programming languages. The three broad categories are in mode, out mode, and in-out mode. The in mode of parameter passing is the most common, and is associated with pass-by-value semantics. The out mode is associated with pass-by-result semantics. Finally, in-out mode parameter passing is achieved by the semantic models pass-by-value-result or pass-by-reference. Examples of all of these parameter passing modes are demonstrated in Java, Ada, C++, C, and C#. Finally, the unusual pass-by-name/pass-by-need model is briefly demonstrated in Haskell.

Комментарии

Информация по комментариям в разработке