cvs commit: perlfaq perlfaq.pod perlfaq3.pod

[email protected]
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
cvsuser     02/09/04 15:30:10

  Modified:    .        perlfaq.pod perlfaq3.pod
  Log:
  * perlfaq3: Is it unsafe to return a pointer to local data
  
  	+ removed the double negative in the question and answer
  
  	+ changed "pointer" to "reference"
  
  Revision  Changes    Path
  1.11      +2 -2      perlfaq/perlfaq.pod
  
  Index: perlfaq.pod
  ===================================================================
  RCS file: /cvs/public/perlfaq/perlfaq.pod,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -r1.10 -r1.11
  --- perlfaq.pod	29 Aug 2002 03:34:00 -0000	1.10
  +++ perlfaq.pod	4 Sep 2002 22:30:10 -0000	1.11
  @@ -1,6 +1,6 @@
   =head1 NAME
   
  -perlfaq - frequently asked questions about Perl ($Date: 2002/08/29 03:34:00 $)
  +perlfaq - frequently asked questions about Perl ($Date: 2002/09/04 22:30:10 $)
   
   =head1 DESCRIPTION
   
  @@ -234,7 +234,7 @@
   
   =item *
   
  -Is it unsafe to return a pointer to local data?
  +Is it safe to return a reference to local or lexical data?
   
   =item *
   
  
  
  
  1.27      +4 -3      perlfaq/perlfaq3.pod
  
  Index: perlfaq3.pod
  ===================================================================
  RCS file: /cvs/public/perlfaq/perlfaq3.pod,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -w -r1.26 -r1.27
  --- perlfaq3.pod	29 Aug 2002 03:34:00 -0000	1.26
  +++ perlfaq3.pod	4 Sep 2002 22:30:10 -0000	1.27
  @@ -1,6 +1,6 @@
   =head1 NAME
   
  -perlfaq3 - Programming Tools ($Revision: 1.26 $, $Date: 2002/08/29 03:34:00 $)
  +perlfaq3 - Programming Tools ($Revision: 1.27 $, $Date: 2002/09/04 22:30:10 $)
   
   =head1 DESCRIPTION
   
  @@ -583,9 +583,10 @@
   
   =back
   
  -=head2 Is it unsafe to return a pointer to local data?
  +=head2 Is it safe to return a reference to local or lexical data?
   
  -No, Perl's garbage collection system takes care of this.
  +Yes. Perl's garbage collection system takes care of this so
  +everything works out right.
   
       sub makeone {
   	my @a = ( 1 .. 10 );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.