fixed call-time pass-by-reference