[perldocjp-cvs 1631] CVS update: docs/modules/overloading-0.01

Back to archive index

argra****@users***** argra****@users*****
2012年 12月 5日 (水) 17:56:57 JST


Index: docs/modules/overloading-0.01/overloading.pod
diff -u /dev/null docs/modules/overloading-0.01/overloading.pod:1.1
--- /dev/null	Wed Dec  5 17:56:57 2012
+++ docs/modules/overloading-0.01/overloading.pod	Wed Dec  5 17:56:57 2012
@@ -0,0 +1,94 @@
+
+=encoding euc-jp
+
+=head1 NAME
+
+=begin original
+
+overloading - perl pragma to lexically control overloading
+
+=end original
+
+overloading - レキシカルにオーバーロードを制御する perl プラグマ
+
+=head1 SYNOPSIS
+
+    {
+	no overloading;
+	my $str = "$object"; # doesn't call stringification overload
+    }
+
+    # it's lexical, so this stringifies:
+    warn "$object";
+
+    # it can be enabled per op
+    no overloading qw("");
+    warn "$object";
+
+    # and also reenabled
+    use overloading;
+
+=head1 DESCRIPTION
+
+=begin original
+
+This pragma allows you to lexically disable or enable overloading.
+
+=end original
+
+このプラグマはオーバーロードをレキシカルに無効または有効にします。
+
+=over 6
+
+=item C<no overloading>
+
+=begin original
+
+Disables overloading entirely in the current lexical scope.
+
+=end original
+
+現在のレキシカルスコープでオーバーロードを完全に無効にします。
+
+=item C<no overloading @ops>
+
+=begin original
+
+Disables only specific overloads in the current lexical scope.
+
+=end original
+
+現在のレキシカルスコープで指定されたオーバーロードだけを無効にします。
+
+=item C<use overloading>
+
+=begin original
+
+Reenables overloading in the current lexical scope.
+
+=end original
+
+現在のレキシカルスコープでオーバーロードを再有効化します。
+
+=item C<use overloading @ops>
+
+=begin original
+
+Reenables overloading only for specific ops in the current lexical scope.
+
+=end original
+
+現在のレキシカルスコープで指定された演算子についてのみオーバーロードを
+再有効化します。
+
+=back
+
+=begin meta
+
+Translate: SHIRAKATA Kentaro <argra****@ub32*****>
+Status: completed
+
+=end meta
+
+=cut
+



perldocjp-cvs メーリングリストの案内
Back to archive index