develooper Front page | perl.perl5.porters | Postings from November 2003

Re: DOCPATCH: does STORE need to return anything and if so what?

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
November 2, 2003 05:55
Subject:
Re: DOCPATCH: does STORE need to return anything and if so what?
Message ID:
20031102150120.4c0a8ef2.rgarciasuarez@free.fr
david nicol wrote:
> 
> I had thought that the return value of assignment was returned
> by STORE but I appear to be mistaken, and return value of assignment
> is accomplished by a FETCH on the LHS after the assignment happens.
> 
> Has it ever been thus?  The documentation is currently misleading,
> since it includes examples of STORE gratuitously returning values.
> 
> The attached patch rectifies the situation, unless STORE once needed
> to return the stored value, in which case we sould say when the change
> occurred.

Thanks, applied as #21616.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About