develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34585 - branches/rvar/languages/perl6/src/classes

From:
pmichaud
Date:
December 29, 2008 09:10
Subject:
[svn:parrot] r34585 - branches/rvar/languages/perl6/src/classes
Message ID:
20081229171030.4DF1ACB9FA@x12.develooper.com
Author: pmichaud
Date: Mon Dec 29 09:10:29 2008
New Revision: 34585

Modified:
   branches/rvar/languages/perl6/src/classes/Protoobject.pir

Log:
[rakudo]:  Protoobjects are already scalars.


Modified: branches/rvar/languages/perl6/src/classes/Protoobject.pir
==============================================================================
--- branches/rvar/languages/perl6/src/classes/Protoobject.pir	(original)
+++ branches/rvar/languages/perl6/src/classes/Protoobject.pir	Mon Dec 29 09:10:29 2008
@@ -73,6 +73,19 @@
 
 =back
 
+=head2  Coercions
+
+=over
+
+=item Scalar()
+
+=cut
+
+.namespace ['P6protoobject']
+.sub 'Scalar' :method
+    .return (self)
+.end
+
 =head2  Private methods
 
 =over



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