osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tutor] beginning to code


On Mon, 25 Sep 2017 08:05 pm, Antoon Pardon wrote:

> Pass by reference doesn't imply being able to
> write a swap function.

Really. Do you have a counter-example?


> A swap function as possible in pascal requires two conditions.
> 
> 1) Pass by reference
> 2) Copy-over assignment.

I don't know what you think "copy-over assignment" means, but none of
DuckDuckGo, Google, Bing or Yahoo finds that term except in your post.




-- 
Steve
?Cheer up,? they said, ?things could be worse.? So I cheered up, and sure
enough, things got worse.