Devel :: Deacofref.

Devel :: DealchRef´Â ¾àÇÑ ÂüÁ¶ (ÂüÁ¶ °è»êµÇÁö ¾ÊÀ½)¸¦ Á¦°øÇÕ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Devel :: Deacofref. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Jesse Glick
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~jglick/Devel-WeakRef-0.003/lib/Devel/WeakRef.pm

Devel :: Deacofref. ű×


Devel :: Deacofref. ¼³¸í

Devel :: DealchRef´Â ¾àÇÑ ÂüÁ¶ (ÂüÁ¶ °è»êµÇÁö ¾ÊÀ½)¸¦ Á¦°øÇÕ´Ï´Ù. Devel :: DeakRef´Â ¾àÇÑ Âü°í ¹®ÇåÀ» Á¦°øÇÕ´Ï´Ù (ÂüÁ¶ °è»êµÇÁö ¾ÊÀ½) .SNOPSIS MY $ foo = {a => 1, b => 2}; # ÀϺΠÀÏÁ¾ÀÇ ÂüÁ¶ ½ºÄ®¶ó. My $ Foo_ = New Devel :: DeakRef $ Foo; ³» $ bar = $ foo _-> deref; # hard ref through dereference $ foo _-> deref -> {c} = 3; # dereference $ foo = $ bar = 77; # È®ÀÎ, Çؽô $ foo _-> deref¸¦ ¼öÁýÇß½À´Ï´Ù. # ÀÌÁ¦ Undef¸¦ »ý¼ºÇÕ´Ï´Ù $ foo _-> ºñ¾î ÀÖ½À´Ï´Ù. # true now.currently ÀÌ°ÍÀº ¶ÇÇÑ ÀÛµ¿ÇÕ´Ï´Ù : $$ foo _-> {a}; ÀÌ´Â ¼±¹Ì ¸Þ½ÃÁö°¡ÀÖ´Â ´ÙÀÌ ($$ foo _ = $ new_thing); # ¾Æ´Ï¿ä! DEAK REF´Â REFERENT¸¦ º¯°æÇÏÁö ¾Ê¾Æ¾ßÇÕ´Ï´Ù.ÀÌ Çؽà Å×ÀÌºí¿¡´Â ¾àÇÑ ÂüÁ¶°¡ °ªÀ¸·Î Ç¥½ÃµË´Ï´Ù. % Å×À̺íÀ» ¹­°í, DEVEL :: DEAVERF :: TABLE; $ table {key1} = $ some_object; $ table {key2} = $ some_other_object; $ table {key1} = $ unt_another_object; # ÀÌ¿Í °°Àº Å°¸¦ ¹Ù²Ù´Â °ÍÀº ¾àÇÑ ÂüÁ¶°¡ °´Ã¼ÀÇ ÂüÁ¶ Ƚ¼ö¿¡ ±â¿©ÇÏÁö ¾Ê´Â °´Ã¼¿¡ "Æ÷ÀÎÅÍ"¸¦ °³Ã¼¿¡ "Æ÷ÀÎÅÍ"¸¦ À¯ÁöÇÕ´Ï´Ù. µû¶ó¼­ ¾àÇÑ ÂüÁ¶ ¸¸ ³²¾ÆÀÖÀ» ¶§ °´Ã¼ÀÇ ÀúÀå ÀåÄ¡°¡ ÇØÁ¦ µÉ ¼ö ÀÖ½À´Ï´Ù (¹× ¼Ò¸êÀÚ°¡ È£Ãâ)µË´Ï´Ù. (´ÜÀÏ ¿ÀºêÁ§Æ®¿¡ ´ëÇÑ ¾àÇÑ ÂüÁ¶°¡ ¿©·¯ °¡Áö°¡ ÀÖ½À´Ï´Ù.) Deref ¸Þ¼­µå´Â ¾àÇÑ ÂüÁ¶¸¦ ÁÙÀÔ´Ï´Ù. ´ë»óÀÌ ÀÌ¹Ì Æı« µÈ ¾àÇÑ ÂüÁ¶°¡ Deerference ÂüÁ¶°¡ À¯È¿ÇÏÁö ¾ÊÀº °æ¿ì Undef.Empty Å×½ºÆ® °á°ú¸¦ »ç¿ëÇÕ´Ï´Ù. $ REF-> ºñ¾îÀÖ´Â °ÍÀº! Á¤ÀÇ µÈ $ REF-> DEREF¿Í µ¿ÀÏÇÕ´Ï´Ù. Áö±ÝÀº PerlÀÇ Á¤»óÀûÀÎ ½ºÄ®¶ó°¡ °°Àº È¿°ú·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ÀÌ°ÍÀ» ÀÐÀ» ¼ö ÀÖµµ·ÏÇϽʽÿÀ. ÀÌ ÀÎÅÍÆäÀ̽º´Â º¯°æ µÉ ¼ö ÀÖ½À´Ï´Ù. ÆÐÅ°Áö Devel :: DeakRef :: TableÀº ÇϽø¦ ¹­´Â µ¥ »ç¿ëµÉ ¼ö ÀÖÀ¸¹Ç·Î °ªÀÌ ¸ðµÎ ¾àÇÑ ÂüÁ¶¸¦ ¸ðµÎ ¸¸µé ¼ö ÀÖ½À´Ï´Ù. À̴ ƯÈ÷ ij½Ã¿¡ À¯¿ëÇÕ´Ï´Ù. ¸Å¹ø °ªÀ» ¸í½Ã ÀûÀ¸·Î ´Ù·ç¾î¾ßÇÏ´Â °ÍÀÌ ´õ Â¥Áõ³ª°ÔµË´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


Devel :: Deacofref. °ü·Ã ¼ÒÇÁÆ®¿þ¾î