ã¯ããã« JavaScriptã®switchæã¯ãCãJavaã¨ç°ãªãcaseã®ã¨ããã«ä»»æã®å¼ãæ¸ãããããå®è¡æã«caseã®å¼ãè©ä¾¡ãããã®ã§åºæ¬çã«ã¯if-elseæã®ä¸¦ã³ã¨é¡ä¼¼ã®ãã®ã«ãªãã¾ããã¤ã¾ããcaseã®æ°ã«å¿ãã¦ããã©ã¼ãã³ã¹ãä½ä¸ããã¨äºæ³ããã¾ããæ¬å½ã«ãããªã®ã確èªãã¦ã¿ã¾ããã 測å®ããåãã©ã¦ã¶ã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã®éãã§ãã Firefox Chrome Safari Opera IE 3.5.6 4.0.249.30 4.0.4 (531.21.10) 10.10 8.0.6001 caseãæ°å¤ãªãã©ã«ã®å ´å ããã©ã¼ãã³ã¹ã測å®ãããã¹ãã³ã¼ãã¯ä¸è¨ã®ãããªç°¡åãªãã®ã§ããcaseã1000åããswitchæã10ä¸åç¹°ãè¿ãã¦å®è¡ããã¨ãã®æéã測å®ãã¾ãããperf_test()é¢æ°ã®å¼æ°ï½ã«ä¸ããå¤ã«å¿ãã¦caseã®æ¡ä»¶ã§ä¸è´ããå ´æãå¤ããã¾ãã
æå確ãããç¨ãã¡ãªã¿ã« Exception::Class ã 㨠pacakge ãããããæ示çã«å²ãå½ã¦ãå¿ è¦ã¯ç¡ãã #!/usr/bin/perl package ThrowableProcess::Exception; use base qw(Error::Simple); package ThrowableProcess::FirstException; use base qw(ThrowableProcess::Exception); package ThrowableProcess::SecondException; use base qw(ThrowableProcess::Exception); package ThrowableProcess; use strict; use warnings; use Carp::Clan; use Error qw(:try);
ããããåã®æ©ãããã§ã«ã¹ã¿ã¼ããã¦ããã®ã§ã...ã çç£æ§åä¸ã®ããã®ã³ããç´¹ä»ãã¦ããç±³ããã°ã¡ãã£ã¢ãWork Awesomeãã§ã¯ãããª"å åãå"ä»äºè¡ãç´¹ä»ãã¦ãã¾ãã ããå¹ççã«ä»äºãããªãããã®éåã¯ã²ã¨ã¤ã®ä»äºã ããæåããçµããã¾ã§éä¸ãã¦ããéãããã¨ãçç£æ§åä¸ã«ã¯ã·ã³ã°ã«ã¿ã¹ã¯å¿åã®ã»ããå¹æçãªã®ã ããã§ãã ã³ã1: ç¿æ¥ã®ä»äºãåã®æ©ã«æ±ºããã ã²ã¨ã¤ã®ã¿ã¹ã¯ã«éä¸ããããã«ã¯ãã©ã®ã¿ã¹ã¯ãéè¦ãï¼ããé©åã«å¤æãããã¨ãå¿ è¦ãã¿ã¹ã¯ã®éè¦æ§ãå¤æããä¸ã§ã®ãã¤ã³ãã¯ãã®æ¹æ³ã§ã¯ãªãã¿ã¤ãã³ã°ãã¿ã¹ã¯ã®åªå é ä½ä»ãã¯ãç´åã«ããã¦ã¦å¤æãããããäºåã«ãã£ã¦ãããã¨ãæã¾ããããã¨ãã°ç¿æ¥åãçµãä»äºã¯åã®æ©ã«æ±ºãã¦ããã¨ãã£ãå ·åã ã³ã2: ãªãã£ã¹æºå¨ããçä»ããã ä»ãã£ã¦ããä»äºã«é¢ä¿ãªãæ¸é¡ãªã©ã¯ãã£ãããã¹ã¯ã®ä¸ããçä»ãããããã¨ãããã
id: 116 ææè : msakamoto-sf ä½ææ¥: 2007-03-14 22:47:19 ã«ãã´ãª: Perl [ Prev ] [ Next ] [ Perl ] Perl(æ£ç¢ºã«ã¯Perl5.Xç³»åã¾ã§)ã«ã¯try-catchæ§æã¯åå¨ããªããããããevalãcoderefãå¼æ°ã«ã¨ããã¨ãã§ãããªã©ã®ç¹å¾´ãç¨ããå¹¾ã¤ãã®çä¼¼try-catchçãã¯ããã¯ã¯åå¨ãããError.pmã¨ãã¢ã¸ã¥ã¼ã«ãå ¬éããã¦ããããã¡ããæ´»ç¨ããã¨OOPçãªtry-catchãå®ç¾ã§ããã åèãã¼ã¸ï¼ Error.pm http://search.cpan.org/~shlomif/Error-0.17008/lib/Error.pm http://www.perl.com/pub/a/2002/11/14/exception.html http://www.perl.com/pub/
ä¾å¤ãæããã¨ã㯠$obj->throwããã¼ã¹ã¯ã©ã¹ã¯ Error::Simpleã try { MyException->new("hello world")->throw; } catch MyException with { my $e = shift; print "$e\n"; }; package MyException; use base qw(Error::Simple); ã¿ããæ¸ããè²ã æãã¦ããã£ãçµæç解ãããmiyagawa++ tokuhirom++ 8/28追è¨: ã¡ãªã¿ã« Error::Simple ãã»ãããã $@ ã¯ä¾å¤ã¨ãã¦éåºããããªãã¸ã§ã¯ãã§ãã㤠Error::Simple 㯠stringify ããªã¼ãã¼ã©ã¤ããã¦ããã®ã§ãeval ã使ã£ã¦ä¾å¤ç£è¦ãã¦ããå ´åãã¡ããã¨åãã eval { MyException->new("hel
ãµã¤ãã¡ãã¥ã¼ EBS Eternal Champion EC 説ææ¸ EC æ²ç¤ºæ¿ ãã£ãã EBSæ¹é ã¤ã©ã¹ãç³» æ±æ¹ã¢ã¤ã³ã³ CG Gallery å°æªé表æ é Game & SRC åéæ£æ© æ±æ¹ç åå¤ï¼éä¸ï¼ ãªãªã¼ã·ããªãª å¼¾å¹ã¤ã³ã¯ã«ã¼ã æ±æ¹ãã¿ æ±æ¹ååé² æå¼·ã©ã³ãã³ã° å¹»æ³é·ãã¼ã ç·¨æ ã¢ããªãã©ã¤ãã©ãª MjQuickView MjClickLog DxLib for C# SRCãã¼ã¿ã¨ãã£ã¿ C#ãã¦ã¹ã¸ã§ã¹ã㣠Perlãã¼ã¸ã¢ã¸ã¥ã¼ã« ãã®ä»ã®ãã¿ ãã¼ãæ¡å¼µã«ã¼ã« RPG16ã¹ãã¼ã¿ã¹ ã¢ãã¡ã¬ãã¥ã¼ æã®ä¼ç» ç¨èªè¾å ¸ ãªã¬ã¼å°èª¬ ãªã³ã¯ é常 CGãµã¤ã Webé¢é£ ããããæ¸ç± æ å ± æ²ç¤ºæ¿ ãã®ãµã¤ãã«ã¤ã㦠èªå·±ç´¹ä» « æ±æ¹ç åå¤ãªãªã¼ã·ããªãªä»®å ¬éçï¼5話ã¾ã§ï¼ | ã¡ã¤ã³ | ãã¼ã¸ããããã¢ã¸ã¥ã¼ã« » 2006å¹´01æ19æ¥ Perl
ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
Fifty Dangerous Things (You Should Let Your Children Do) ä½è : Gever Tulley,Julie Spiegleråºç社/ã¡ã¼ã«ã¼: Tinkering Unlimitedçºå£²æ¥: 2009/12/11ã¡ãã£ã¢: ãã¼ãã¼ããã¯è³¼å ¥: 10人 ã¯ãªãã¯: 943åãã®ååãå«ãããã° (2件) ãè¦ã ãã®æ¬ "Fifty Dangerous Things (You Should Let Your Children Do)" ï¼ãåã©ãããã¹ãï¼ï¼ã®å±éºãªãã¨ãï¼ã¯ï¼ Kevin Kelly ï¼Wired ã®åµå§è ã®ä¸äººã¨ãã¦æåãªç·¨éè ï¼ã®ããã°ã§ç´¹ä»ããã¦ãããã®ã ããã®æ¬ã«ã¯ï¼ä¾ãã°ãæãæ¥çå¤ã§è²¼ãåããã¦ã¿ããã ã¨ããï¼ï¼¶é»æ± ãèãã¦ã¿ããã ã¨ãï¼ãããã£ãããã¾ãæ·±å»ã§ã¯ãªãï¼ã¡ãã£ã¨å±éºãªãã¨ããï¼ï¼é ç®è¼ãããã¦
æ¯åå ¥åããæéãçãããã«ãã¢ããªã«ãã¹ã¯ã¼ããè¦ãããã¦ãã人ãå¤ãã§ãããããã®å ´åãã¡ããã¨æå·åãã¦ããªãã¨ãããªãã®ãã·ã³ãããããç¶æ ã®äººã¯ããã®æ°ã«ãªãã°ç°¡åã«è§£èªã§ãã¦ãã¾ãã®ã§ãããããããããªãã®äººããã¡ãã¨æå·åãã¦ããªãã ãããã¨ã«ããã ãThe How-To Geekãã¨ãã£ã¿ã¼ãããã¹ã¯ã¼ãã®ä¿åã®ä»æ¹ã®ããããééãã¨ãæ£ããæ¹æ³ãç´¹ä»ãã¦ãã¾ãã ã¾ããæåã«æ³å®ããã·ããªãªã¯ãããªãã®å®¶ã訪ãã人ã¯ä¿¡é ¼ã§ãã人ã§ãããªãã®ãã·ã³ã«ãããã³ã°ãã¦ãã¹ã¯ã¼ããçããããªãã¨ã¯ããªããã¨ãããã®ã§ãããã®ããããããªãã®ã©ããããããçã¾ããå ´åãèãã¾ãããã ããããããç´¹ä»ããæ¹æ³ã¯ãã©ã¡ãã®ç¶æ³ã§ã使ããã¯ã¶ã§ãããã¹ã¯ã¼ããæ¼ããªãããã«ããã®ã¯å¤§äºãªãã¨ã§ããããã以åã«äºæ³ããã«ãããã¹ã¯ã¼ãã使ãã¨ãããã¹ã¯ã¼ããå¼ã³åºã質åï¼ä¾ï¼ãããªãã®ãæ¯
as詳解 ActionScript 3.0ã¢ãã¡ã¼ã·ã§ã³ âè¡çªå¤å®ã»AIã»3Dãããã¯ã»ã«ã·ã§ã¼ãã¾ã§Flashä¸ç´ãã¯ãã㯠ãèªãã§ãã¦ãçµè·¯æ¢ç´¢ã®ã¢ã«ã´ãªãºã 㧠A* ãåãä¸ãããã¦ãã¾ãããA* ã«ã¤ãã¦ã¯ãããããæ¤ç´¢ãã¦èª¿ã¹ãããããã®ã§ããããã£ã±ãæ¬ã«æ¸ãã¦ããã¨ç解ããããã§ããããã£ãããªã®ã§èªåæµã«å®è£ ãã¦ãã¸ã¥ã¢ã©ã¤ãºãã¦ã¿ã¾ããããã¤ã¯ã¹ãã©æ³ã¾ã㯠A* ã®ç¹å¥ãªã±ã¼ã¹ã§ããããã¤ã¯ã¹ãã©æ³ããè¦ã¦ããã¾ããã¯ãªãã¯ããã¨æ¢ç´¢ã®ã·ãã¥ã¬ã¼ã·ã§ã³ãéå§ãã¾ããã¹ã¿ã¼ãå°ç¹(S)ããã´ã¼ã«(G)ã¸ã®æ¢ç´¢ãå§ã¾ãã¾ããè²ãã¤ããã¨ããããæççµè·¯ã決å®ããå ´æãã§ããã¹ã¿ã¼ãå°ç¹ããå°ããã¤æ¢ç´¢ãå®äºãã¦ããã¾ããååãããå®äºãã¾ãããã¾ã ã¾ã é²ã¿ã¾ããæå¾ã¾ã§çµããã¾ãããæççµè·¯ãé»è²ç¢å°ã§è¡¨ç¤ºãã¦ãã¾ãããã¤ã¯ã¹ãã©æ³ã¯ãã¹ã¿ã¼ãå°ç¹ããè¿ããã¼ã(=ãã¹
â Perlåºç¤ææ³æéãã¹ã¿ã¼ãã ããããã®ã¾ã¾ãRubyã«ç½®ãæãã¦ã¿ã¾ããã ä»ã®è¨èªãããç¨åº¦ç¥ã£ã¦ãã人ã¯ãããèªãã°Rubyã®åºç¤ããã¹ã¿ã¼ãã¦Rubyãæ¸ããã¨ãã§ããããã«ãªãâ¦ããç¥ãã¾ãããç¡ä¿è¨¼ã§ãã åèï¼ ãªãã¸ã§ã¯ãæåã¹ã¯ãªããè¨èª Ruby ãªãã¡ã¬ã³ã¹ããã¥ã¢ã« (1.9.2) ãªãã¸ã§ã¯ãæåã¹ã¯ãªããè¨èª Ruby ãªãã¡ã¬ã³ã¹ããã¥ã¢ã« (1.8.7) â 1. åºç¤ ã¤ã³ã¿ã©ã¯ãã£ãRuby (irb) irbã使ãã¨ãRubyã®ããã°ã©ã ãç°¡åã«ç·´ç¿ãããã¨ãã§ãã¾ãã /Users/yhara $ irb irb(main):001:0> puts "hello" hello => nil irb(main):002:0> 1 + 1 => 2 以ä¸ã®èª¬æã¯ãirbãèµ·åãã¦ãèªåã§è©¦ããªããèªãã¨ç¿å¾ãæ©ãã¨æãã¾ãã 表示 (print,
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}