Call by reference with different environment