[perldocjp-cvs 392] CVS update: docs/perl/5.6.1

Back to archive index

argra****@users***** argra****@users*****
2009年 2月 5日 (木) 00:45:50 JST


Index: docs/perl/5.6.1/overload.pod
diff -u docs/perl/5.6.1/overload.pod:1.4 docs/perl/5.6.1/overload.pod:1.5
--- docs/perl/5.6.1/overload.pod:1.4	Sun Feb  1 00:25:31 2009
+++ docs/perl/5.6.1/overload.pod	Thu Feb  5 00:45:50 2009
@@ -234,10 +234,9 @@
 
 =end original
 
-The routines which implement these operators are expected to actually
-I<mutate> their arguments.  So, assuming that $obj is a reference to a
-number,
-(TBT)
+これらの演算子を実装するルーチンは、実際はこれらの引数を
+I<ミューテート> することを想定しています。
+それで、$obj が数値へのリファレンスと仮定すると、
 
   sub incr { my $n = $ {$_[0]}; ++$n; $_[0] = bless \$n}
 
@@ -247,8 +246,7 @@
 
 =end original
 
-is an appropriate implementation of overloaded C<++>.  Note that
-(TBT)
+はオーバーロードした C<++> の適切な実装です。以下のものは
 
   sub incr { ++$ {$_[0]} ; shift }
 
@@ -259,9 +257,10 @@
 
 =end original
 
-is OK if used with preincrement and with postincrement. (In the case
-of postincrement a copying will be performed, see L<Copy Constructor>.)
-(TBT)
+事前インクリメントと事後インクリメントの場合は OK であることに
+注意してください。
+事後インクリメントの場合、コピーが実行されます。
+L<Copy Constructor> を参照してください。)
 
 =item C<x=> and other assignment versions
 



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