r27054 - docs/Perl6/Spec

2009-06-10 Thread pugs-commits
Author: lwall
Date: 2009-06-10 10:07:58 +0200 (Wed, 10 Jun 2009)
New Revision: 27054

Modified:
   docs/Perl6/Spec/S12-objects.pod
Log:
[S12] dwim on things like: say Foo = $foo.;


Modified: docs/Perl6/Spec/S12-objects.pod
===
--- docs/Perl6/Spec/S12-objects.pod 2009-06-10 00:15:48 UTC (rev 27053)
+++ docs/Perl6/Spec/S12-objects.pod 2009-06-10 08:07:58 UTC (rev 27054)
@@ -12,8 +12,8 @@
 
   Maintainer: Larry Wall la...@wall.org
   Date: 27 Oct 2004
-  Last Modified: 9 Jun 2009
-  Version: 84
+  Last Modified: 10 Jun 2009
+  Version: 85
 
 =head1 Overview
 
@@ -273,6 +273,17 @@
 
 $obj!$methodname  # indirect call to private method name
 
+Within an interpolation, the double-quoted form may not contain
+whitespace.  This does what the user expects in the common case of
+a quoted string ending with a period:
+
+say Foo = $foo.;
+
+If you really want to call a method with whitespace, you may work
+around this restriction with a closure interpolation:
+
+say Foo = {$foo.a method};  # OK
+
 [Note: to help catch the mistaken use of C infix:.  as a string
 concatenation operator, Perl 6 will warn you about useless use of
 quotes at compile time if the string inside quotes is an identifier.



S03- Unicode feed operator, no prefix:=

2009-06-10 Thread yary
I'm about halfway through reading Synopsis 3 and have a couple
comments/questions.

Is there, should there be unicode synonyms for the feed operators? eg
== is also ⇐ lArr;LEFTWARDS DOUBLE ARROW
== is also ⇒ rArr;RIGHTWARDS DOUBLE ARROW

I don't see as obvious candidates for == and ==, maybe LEFTWARDS ,
RIGHTWARDS TWO HEADED ARROW  ↞ and ↠. That's good in that the two
headed arrow looks like the angle brackets, but then the arrow shaft
isn't doubled, so it's more of a unicode synonym for --

In a different section, S03 says- In particular, you can say things
like C$array.'@' and C$fh.'=' to get the prefix form on the
operator. Hasn't prefix:= gone away for reading from filehandles?


Re: S03- Unicode feed operator, no prefix:=

2009-06-10 Thread Timothy S. Nelson

On Wed, 10 Jun 2009, yary wrote:


I'm about halfway through reading Synopsis 3 and have a couple
comments/questions.

Is there, should there be unicode synonyms for the feed operators? eg
== is also ? lArr; LEFTWARDS DOUBLE ARROW
== is also ? rArr; RIGHTWARDS DOUBLE ARROW

I don't see as obvious candidates for == and ==, maybe LEFTWARDS ,
RIGHTWARDS TWO HEADED ARROW  ? and ?. That's good in that the two
headed arrow looks like the angle brackets, but then the arrow shaft
isn't doubled, so it's more of a unicode synonym for --


	I admit I haven't been following recent discussion, but I've been 
presuming that use Unicode::Operators (or whatever we're calling it now) 
will be an external module, and as such, not in the spec.  Obviously there are 
some exceptions, such as those Unicode operators documented in the current 
specs.


HTH,


-
| Name: Tim Nelson | Because the Creator is,|
| E-mail: wayl...@wayland.id.au| I am   |
-

BEGIN GEEK CODE BLOCK
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- 
PE(+) Y+++ PGP-+++ R(+) !tv b++ DI D G+ e++ h! y-

-END GEEK CODE BLOCK-



r27056 - docs/Perl6/Spec

2009-06-10 Thread pugs-commits
Author: jdlugosz
Date: 2009-06-11 02:46:52 +0200 (Thu, 11 Jun 2009)
New Revision: 27056

Modified:
   docs/Perl6/Spec/S03-operators.pod
Log:
[S03] reword example due to prefix = no longer existing.  Presumably the effect 
still applies if you were to have one, even though it is no longer a built-in 
operator.

Modified: docs/Perl6/Spec/S03-operators.pod
===
--- docs/Perl6/Spec/S03-operators.pod   2009-06-10 08:09:40 UTC (rev 27055)
+++ docs/Perl6/Spec/S03-operators.pod   2009-06-11 00:46:52 UTC (rev 27056)
@@ -13,8 +13,8 @@
 
   Maintainer: Larry Wall la...@wall.org
   Date: 8 Mar 2004
-  Last Modified: 7 Jun 2009
-  Version: 167
+  Last Modified: 10 Jun 2009
+  Version: 168
 
 =head1 Overview
 
@@ -2290,9 +2290,13 @@
 The postfix interpretation of an operator may be overridden by
 use of a quoted method call, which calls the prefix form instead.
 So Cx().! is always the postfix operator, but Cx().'!' will always
-call C!x().  In particular, you can say things like C$array.'@'
-and C$fh.'=', which will not be confused lexically with C$fh.=new
-due to the quotes.
+call C!x().  In particular, you can say things like C$array.'@'.
+This also includes any operator that would look like something
+with a special meaning if used after the method-calling dot.  For example,
+If you defined a Cprefix:= , and you wanted to write it using
+the method-call syntax instead of C=$object, the parser would take
+C$object.= as the mutation syntax (see S12, Mutating methods).
+Writing C$object.'=' will call your prefix operator.
 
 =item *
 



Re: S03- Unicode feed operator, no prefix:=

2009-06-10 Thread John M. Dlugosz

yary not.com-at-gmail.com |Perl 6| wrote:

I'm about halfway through reading Synopsis 3 and have a couple
comments/questions.

Is there, should there be unicode synonyms for the feed operators? eg
== is also ⇐ lArr; LEFTWARDS DOUBLE ARROW
== is also ⇒ rArr; RIGHTWARDS DOUBLE ARROW

I don't see as obvious candidates for == and ==, maybe LEFTWARDS ,
RIGHTWARDS TWO HEADED ARROW  ↞ and ↠. That's good in that the two
headed arrow looks like the angle brackets, but then the arrow shaft
isn't doubled, so it's more of a unicode synonym for --
  
More Unicode operators will be available via modules or defining 
yourself.  It is an open issue as to making these true synonyms so MMD 
and people defining new forms of them don't have to worry about 
synonyms.  But, there will be a syntax for that, and everyone is welcome 
to make use of that and upload modules to do that.  Common use will 
emerge over time.





In a different section, S03 says- In particular, you can say things
like C$array.'@' and C$fh.'=' to get the prefix form on the
operator. Hasn't prefix:= gone away for reading from filehandles?

  


Correct.  You'll see a prefix = is not listed at the top of S03 for 
operators and their built-in use.  I'll come up with something better 
and check it in.


After the tornado is over ... I keep losing my connection.

--John


Re: S03- Unicode feed operator, no prefix:=

2009-06-10 Thread John M. Dlugosz

yary not.com-at-gmail.com |Perl 6| wrote:

I'm about halfway through reading Synopsis 3 and have a couple
comments/questions.

Is there, should there be unicode synonyms for the feed operators? eg
== is also ⇐ lArr; LEFTWARDS DOUBLE ARROW
== is also ⇒ rArr; RIGHTWARDS DOUBLE ARROW

I don't see as obvious candidates for == and ==, maybe LEFTWARDS ,
RIGHTWARDS TWO HEADED ARROW  ↞ and ↠. That's good in that the two
headed arrow looks like the angle brackets, but then the arrow shaft
isn't doubled, so it's more of a unicode synonym for --
  



I have trouble using the arrow character in general.  It's because of 
the fonts:  they have such tiny heads the arrow doesn't show well at 
all, or match the surrounding character style.  So I tend to avoid them 
on web pages, and any document where I'm not fully controlling the font 
mapping and rendering.


--John



r27057 - docs/Perl6/Spec

2009-06-10 Thread pugs-commits
Author: masak
Date: 2009-06-11 07:17:56 +0200 (Thu, 11 Jun 2009)
New Revision: 27057

Modified:
   docs/Perl6/Spec/S03-operators.pod
Log:
[S03] supplied a missing 

Modified: docs/Perl6/Spec/S03-operators.pod
===
--- docs/Perl6/Spec/S03-operators.pod   2009-06-11 00:46:52 UTC (rev 27056)
+++ docs/Perl6/Spec/S03-operators.pod   2009-06-11 05:17:56 UTC (rev 27057)
@@ -2295,7 +2295,7 @@
 with a special meaning if used after the method-calling dot.  For example,
 If you defined a Cprefix:= , and you wanted to write it using
 the method-call syntax instead of C=$object, the parser would take
-C$object.= as the mutation syntax (see S12, Mutating methods).
+C$object.= as the mutation syntax (see S12, Mutating methods).
 Writing C$object.'=' will call your prefix operator.
 
 =item *