Functioncall: What are 'Call By Result' / 'Call By value result' Parameters? ( check description! )

preview_player
Показать описание
Apparently there is a little confusion about "what phrase means what thing". I could not find clear references for one or the other.
My explanation in the video of "Call By Result" is based on material from... my university (? ... I forgot). Other places/people/books might understand "call by result" differently. Other places/people/books might call what I explain differently.

E.g. Wikipedia calls what I explain:
- "Call by copy-restore"
- "copy-in copy-out"
- "call by value result"
- "call by value return"

Wikipedia also says: "When the reference is passed to the callee uninitialized, [it] may be called 'call by result' ". However, there is no reference given on Wikipedia for this part.

Therefore: Be careful with the wording.

Also: Make sure to read the comments. Try google translate for the German ones.

 Video created with HyperCam2, Audacity, AviDemux and PowerPoint2003
Рекомендации по теме
Комментарии
Автор

That's it. That's all I want to know. Thank you for the concise explanation.

chuongtruong
Автор

In fact, what the video explained was "call by value-result". In call by result, the actual parameter only plays a roll of an output. So, the function doesn't know (or care) what "x" was before getting 8.

alibahrani
Автор

Before the final exam, this helped me a lot. Thanks for clear explanation

polycoder
Автор

Can you please explain the difference between call by result and call by value-result with an example?

neelukalani
Автор

Sorry, aber Du erklärst hier Call-by value and result

farahela