Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[svn:perl6-synopsis] r14533 - doc/trunk/design/syn
Author: audreyt
Date: Wed Apr  2 09:13:06 2008
New Revision: 14533

Modified:
doc/trunk/design/syn/S09.pod

Log:
* S09/Autovivification:

Change the wording "assignment implicitly binds a copy" to
"assignment is treated the same way as binding to a copy container",
because assignment and binding are two orthogonal concepts.

Reported by: John M. Dlugosz

Modified: doc/trunk/design/syn/S09.pod
 ========================================
====================================
==
--- doc/trunk/design/syn/S09.pod	(original)
+++ doc/trunk/design/syn/S09.pod	Wed Apr  2 09:13:06 2008
@@ -14,7 +14,7 @@
Date: 13 Sep 2004
Last Modified: 2 Apr 2008
Number: 9
-  Version: 25
+  Version: 26

=head1 Overview

@@ -1168,10 +1168,14 @@

Autovivification will only happen if the vivifiable path is bound to
a read-write container.  Value extraction (that is, binding to a readonly
-or copy container) does not autovivify.  (Note that assignment implicitly
-binds a copy, so it does not autovivify its right side.)  Any mention of
-an expression within a C<Capture> delays the autovivification decision
-to binding time.  (Binding to a "ref" parameter also defers the decision.)
+or copy container) does not autovivify.
+
+Note that assignment is treated the same way as binding to a copy container
,
+so it does not autovivify its right side either.
+
+Any mention of an expression within a C<Capture> delays the autovivificatio
n
+decision to binding time.  (Binding to a "ref" parameter also defers the
+decision.)

This is as opposed to PerlĀ_5, where autovivification could happen
unintentionally, even when the code looks like a non-destructive test:

Report this thread to moderator Post Follow-up to this message
Old Post
audreyt@cvs.perl.org
04-03-08 12:14 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL 6 Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:25 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.