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] r14537 - doc/trunk/design/syn
Author: larry
Date: Wed Apr  2 11:02:36 2008
New Revision: 14537

Modified:
doc/trunk/design/syn/S02.pod
doc/trunk/design/syn/S03.pod

Log:
typo from Jon Lang++
clarify innards of () and [] slightly


Modified: doc/trunk/design/syn/S02.pod
 ========================================
====================================
==
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Wed Apr  2 11:02:36 2008
@@ -1489,7 +1489,7 @@

&foo($arg1, $arg2);

-Whitespace is not allowed before the parens because it it is parsed as
+Whitespace is not allowed before the parens because it is parsed as
a postfix.  As with any postfix, there is also a corresponding C<.()>
operator, and you may use the "unspace" form to insert optional
whitespace and comments between the backslash and either of the

Modified: doc/trunk/design/syn/S03.pod
 ========================================
====================================
==
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Wed Apr  2 11:02:36 2008
@@ -85,7 +85,7 @@

This isn't really a precedence level, but it's in here because no operator
can have tighter precedence than a term.  See S02 for longer descriptions of
-various terms.
+various terms.  Here are some examples.

=over

@@ -137,7 +137,10 @@

[1,2,3]

-Provides list context inside.
+Provides list context inside.  (Technically, it really provides a
+"semilist" context, which is a semicolon-separated list of statements,
+each of which is interpreted in list context and then concatenated
+into the final list.)

=item *

@@ -213,11 +216,14 @@

=item *

-Circumfixed subexpressions
+Subexpressions circumfixed by parentheses

(1+2)

-Circumfixed items are treated like a term on the outside.
+Parentheses are parsed on the inside as a semicolon-separated list
+of statements, which (unlike the statements in a block) returns the results
+of all the statements concatenated together as a C<List> of C<Capture>.
+How that is subsequently treated depends on its eventual binding.

=item *


Report this thread to moderator Post Follow-up to this message
Old Post
larry@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 11:06 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.