Browse files

X::Syntax::Obsolete

  • Loading branch information...
1 parent 87275f7 commit b84221e64e880b739e6bb2ec70f6b82011703a8e @moritz moritz committed Aug 26, 2012
Showing with 39 additions and 0 deletions.
  1. +39 −0 lib/X/Syntax/Obsolete.pod
View
39 lib/X/Syntax/Obsolete.pod
@@ -0,0 +1,39 @@
+=begin pod
+
+=TITLE role X::Syntax::Obsolete
+
+ role X::Syntax::Obsolete does X::Syntax { }
+
+Syntax error thrown when obsolete (mostly Perl 5) syntax is detected.
+
+For example
+
+ new Array;
+
+dies with
+
+ ===SORRY!===
+ Unsupported use of C++ constructor syntax; in Perl 6 please use method call syntax
+
+=head1 Methods
+
+=head2 old
+
+ method old() returns Str:D
+
+Returns a textual description of the obsolete syntax construct
+
+=head2 replacement
+
+ method replacement() returns Str:D
+
+Describes what to use instead of the obsolete syntax.
+
+=head2 when
+
+ method when() returns Str:D
+
+Returns a string describing the state of the language (usually
+C<" in Perl 6">).
+
+=end pod

0 comments on commit b84221e

Please sign in to comment.