Seeking clarification about the scope and lifetime of variables

thanks for your clarification.

please excuse me if i didn’t choose the correct terminology. with ‘by value’ and ‘by reference’ (please note the quotation marks) i wanted to imply a certain analogy to c, c++. it’s just a bit difficult for me to forget my years of experience with c, c++, …

thanks again for your explanations.