調ã¹ãã®ãã¦ããæã«ãirbrcã¨ãããã¡ã¤ã«ããã¼ã ãã£ã¬ã¯ããªã«ä½æããã¨irbã®è¨å®ãã«ã¹ã¿ãã¤ãºã§ããäºãç¥ãã¾ããã ãåèã«ãã.irbrcã http://dotfiles.org/~lattice/.irbrc ä¾åããããã±ã¼ã¸ãgemã«å ¥ãã¦ããã¨ã¯ã³ããã§ã ã·ã³ãã«ã ãã©å¹æ絶大ã ã£ãã®ãä¸è¨2ã¤ããªãã æ°ã«å ¥ã£ãè¨å® require 'irb/completion' ã§ãirbä¸ã§è£å®ãå¹ããã require 'irb/ext/save-history' IRB.conf[:USE_READLINE] = true IRB.conf[:SAVE_HISTORY] = 1000 IRB.conf[:HISTORY_PATH] = File::expand_path("~/.irb.history") ã§ãå ¥åå±¥æ´ãä¿æã§ãããã ããã¢ãã¯ãªirbrc ãã®äººã®
~/.irbrcã«è¨å®ãæ¸ããäºã人ã«ä¼ããæ©ä¼ããã£ããèªåããããªã«å¤ãã¯è¨å®ããã¦ãªãã以ä¸ã®è¨å®ã¯å¿ ãè¡ãããã«ãã¦ããã # ã¿ãè£å®ãæå¹ã«ããã require "irb/completion" # ãã¹ããªã~/.irb_historyã«ä¿åããããã¹ããªã®ä»¶æ°ã10000件ã«ããã IRB.conf[:SAVE_HISTORY] = 10000 ãã¹ããªã®ä¿åã«ã¤ãã¦ã¯ãæã¯ãã¾ã ããããããä½ãããirb-history.rbã使ãããã«ãã¦ãããæè¿ã¯è¨å®ããã ãã ãã楽ã§ããªãã1.8.7ã§ãã§ãããã
1ï¼ã¹ãã¼ããã¤ã³ã¿ã¨ã¯ï¼ boost::weak_ptrãå©ç¨ããã±ã¼ã¹ã«ã¤ãã¦ã話ãããåã«ãã¾ããã¹ãã¼ããã¤ã³ã¿ã«ã¤ãã¦ã®æ¦è¦ããã¯ãªãããå¿ è¦ãããã¾ãããªããªããboost::weak_ptrã¯ãï¼ã¡ãã£ã¨ç¹æ®ãªï¼ã¹ãã¼ããã¤ã³ã¿ã®ä¸ç¨®ã ããã§ãã ã¹ãã¼ããã¤ã³ã¿ã¨ã¯ãè³¢ãï¼ã¹ãã¼ããªï¼ãã¤ã³ã¿ã¨ããååã®ç±æ¥ãããæ³åã§ãããã¨æãã¾ãããæã示ããªãã¸ã§ã¯ãã®å¾å§æ«ãèªååãã¦ãããããã¤ã³ã¿ã®ããã«æ¯ãèãã¯ã©ã¹ãã³ãã¬ã¼ãã®ãã¨ã§ãã ããã°ã©ãã³ã°è¨èªC++ã§ã¯ãã¡ã¢ãªãå種ãã³ãã«ãªã©ã®ãªã½ã¼ã¹ã®ç®¡çã«ã¹ãã¼ããã¤ã³ã¿ãå©ç¨ãã¾ããã¹ãã¼ããã¤ã³ã¿ãç¨ãããã¨ã§ããªã½ã¼ã¹ã®è§£æ¾ãèªååããããªã½ã¼ã¹ãªã¼ã¯åé¡ãé²ããã¨ãã§ãã¾ãã æ®å¿µãªãããç¾å¨ã®C++ï¼C++03ï¼æ¨æºã§ã¯ãæ±ç¨çã«å©ç¨ã§ããã¹ãã¼ããã¤ã³ã¿ãæä¾ããã¦ãã¾ããï¼std::auto_ptrãæ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}