Cobol Foro

Cobol Foro (https://www.cobolforo.es/index.php)
-   PowerCOBOL y WinAPI (https://www.cobolforo.es/forumdisplay.php?f=33)
-   -   [Compilador] Diferencia BY REFERENCE, BY VALUE, BY CONTENT (https://www.cobolforo.es/showthread.php?t=78)

Kuk 23 de marzo de 2015 17:01

Diferencia BY REFERENCE, BY VALUE, BY CONTENT
 
Amigos, información útil:

Cita:

BY REFERENCE passes the address of an item
BY VALUE passes the value of the item directly.

Therefore, as with the BY CONTENT specification, the BY VALUE
specification does not cause the content of the parameter to be changed in the
calling program, even when the content of the corresponding parameter in the called
program is changed.

Note that the coding in the called C program varies depending
on whether it receives an address or a value.

Remarks: If the BY specification is omitted, BY REFERENCE is assumed.


La franja horaria es GMT +2. Ahora son las 13:58.

Powered by: vBulletin, Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.