On 2018-02-11, at 06:29:47, Ze'ev Atlas wrote:

> Now that I have understood the concept of call 'by name', I have a 
> semantically question and I will use some pseudo code to describe it
> Le's say that I have these function definition
> FUNC1 (BY NAME A, BY REFERENCE B, BY VALUE C){...}
>  
Side effects can make it worse.  For a call such as:
    FUNC1( ++MYVAR3, MYVAR3, 7 )

When FUNC1 refers to A, the caller's MYVAR3 is incremented and that
incremented value is used as FUNC1's A.  Then if FUNC1 later refers
to B, it gets that incremented value.

-- gil

Reply via email to