Fw: changes visible when passing a list by value

2001-08-09 Thread Rizwan Majeed
- Original Message - From: Rizwan Majeed To: '[EMAIL PROTECTED]' Sent: Thursday, August 09, 2001 6:05 PM Subject: changes visible when passing a list by value It is known that passing a list by value to a function does not make visible to the calling function changes made to the lis

Re: Fw: changes visible when passing a list by value

2001-08-10 Thread Michael Fowler
On Fri, Aug 10, 2001 at 10:42:32AM +0500, Rizwan Majeed wrote: > It is known that passing a list by value to a function does not make > visible to the calling function changes made to the list. That isn't necessarily true. The code: sub my_push (\@@) { push(@{ $_[0] }, @_[1 .. $#_]) }

Re: Fw: changes visible when passing a list by value

2001-08-10 Thread Jeff 'japhy/Marillion' Pinyan
On Aug 10, Rizwan Majeed said: >It is known that passing a list by value to a function does not make >visible to the calling function changes made to the list. > >But I dont understand how does the push() function works. Push takes >the value of a list and still makes visible to the calling block