{"id":422,"date":"2013-09-23T13:16:47","date_gmt":"2013-09-23T04:16:47","guid":{"rendered":"http:\/\/humrevlife.com\/?p=422"},"modified":"2013-09-23T16:38:01","modified_gmt":"2013-09-23T07:38:01","slug":"blade%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%80%80%e3%81%9d%e3%81%ae3%e3%80%80%e3%80%8c%e7%9f%a5%e3%81%a3%e3%81%a6%e3%81%8a%e3%81%8b%e3%81%aa%e3%82%8c%e3%81%91%e3%82%8c%e3%81%b0%e3%81%aa","status":"publish","type":"post","link":"https:\/\/humrevlife.com\/?p=422","title":{"rendered":"Blade\u30b9\u30af\u30ea\u30d7\u30c8\u3000\u305d\u306e3\u3000\u300c\u77e5\u3063\u3066\u304a\u304b\u306a\u308c\u3051\u308c\u3070\u306a\u3089\u306a\u30445\u3064\u306e\u639f\u300d"},"content":{"rendered":"<p>Blade\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u96e3\u3057\u3044\u3068\u611f\u3058\u308b\u4eba\uff01\u958b\u59cb1\u5206\u3067\u4e00\u756a\u57fa\u790e\u3068\u306a\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3051\u307e\u3059\u3088\uff01<\/p>\n<p>\u57fa\u672c\u30eb\u30fc\u30eb\u3055\u3048\u5206\u304b\u308c\u3070\u304b\u306a\u308a\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u306e\u3067\u3001\u305c\u3072\u3053\u306e\u30da\u30fc\u30b8\u306e\u5192\u982d\u3067\u8aac\u660e\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u81ea\u5206\u3067\u5b9f\u8df5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u3055\u3066\u3001\u7686\u3055\u3093\u306fBlade\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306e<span style=\"color: #ff0000;\">\u25cf<\/span>(\u30b3\u30de\u30f3\u30c9\u9332\u753b\u30dc\u30bf\u30f3)\u3092\u6709\u52b9\u306b\u3057\u3066\u304b\u3089Blade\u3092\u64cd\u4f5c\u3057\u305f\u3053\u3068\u3042\u308a\u307e\u3059\u304b\uff1f<\/p>\n<p>\u4e8b\u524d\u306b\u30b7\u30fc\u30f3\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3060\u4e0a\u3067\u3001<\/p>\n<p><span style=\"color: #ff0000;\">\u25cf<\/span>\u3092\u62bc\u4e0b\u3057\u3066\u304b\u3089\u3001perspective \u30a6\u30a3\u30f3\u30c9\u30a6\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u5185\u306b\u64cd\u4f5c\u5c65\u6b74\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u81ea\u52d5\u7684\u306b\u66f8\u304b\u308c\u307e\u3059\u3088\u306d\uff1f<\/p>\n<p>\u96e3\u3057\u3044\u3068\u611f\u3058\u3066\u3044\u305f\u4eba\u3067\u3082\u3001\u975e\u5e38\u306b\u7c21\u5358\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u304d\u307e\u3057\u305f\uff57<\/p>\n<p><span style=\"color: #0000ff;\">Blade\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3053\u3046\u3068\u601d\u3048\u3070<\/span><span style=\"color: #ff0000;\">\u25cf<\/span><span style=\"font-size: 14px; color: #0000ff;\">\u3092\u62bc\u3059<\/span><span style=\"font-size: 14px;\">\u3002<\/span><\/p>\n<p>\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u3092\u77e5\u3063\u3066\u3044\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/span><\/p>\n<p>[cpp]<br \/>\nselect &quot;object_name&quot;;<br \/>\n[\/cpp]<\/p>\n<p>\u3057\u304b\u3057\u3001\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u898b\u3066\u3082\u3089\u3046\u3068\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u4e00\u5207\u5909\u6570\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>Blade\u30b9\u30af\u30ea\u30d7\u30c8\u306e5\u3064\u306e\u639f\u304c\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u3068\u6c4e\u7528\u7684\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3051\u306a\u3044\u306e\u3067\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u639f\u305d\u306e1\uff1aC++\u304c\u30d9\u30fc\u30b9<\/p>\n<p>\u30fb\u639f\u305d\u306e2\uff1a\u5909\u6570\u5ba3\u8a00\u304c\u5fc5\u8981(\u7279\u6b8a\u30eb\u30fc\u30eb\u3042\u308a\uff09<\/p>\n<p>\u30fb\u639f\u305d\u306e3\uff1a\u5ba3\u8a00\u3067\u304d\u308b\u4e00\u822c\u7684\u306a\u578b\u3068\u5b9a\u7fa9\u306e\u4ed5\u65b9(\u7279\u6b8a\u30eb\u30fc\u30eb\u3042\u308a\uff09<\/p>\n<p>\u30fb\u639f\u305d\u306e4\uff1a-\u306e\u53d6\u308a\u6271\u3044\u65b9<\/p>\n<p>\u30fb\u639f\u305d\u306e5\uff1a\u623b\u308a\u5024\u306e\u53d6\u5f97<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0\u639f\u305d\u306e\uff11\uff1aC++\u304c\u30d9\u30fc\u30b9<\/strong><\/span><\/p>\n<p>[cpp]<br \/>\nselect &quot;LFWT&quot;; \/\/ OK<br \/>\nselect &quot;LFWT&quot;  \/\/ syntax error<br \/>\n[\/cpp]<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306fselect\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066&#8221;LFWT&#8221;\u3068\u3044\u3046\u540d\u79f0\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f55\u3067\u3042\u308b\u304b\u306f\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u91cd\u8981\u306a\u306e\u306f\u3000<span style=\"color: #3366ff;\">\u300e;\u300f\u3000\u3092\u629c\u304b\u3055\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046<\/span>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u7279\u306bpython,ruby\u306e\u4f7f\u3044\u624b\u306e\u65b9\u3005\u306f\u8981\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0<strong>\u639f\u305d\u306e2\uff1a<\/strong>\u5909\u6570\u5ba3\u8a00\u304c\u5fc5\u8981(\u7279\u6b8a\u30eb\u30fc\u30eb\u3042\u308a\uff09<\/strong><\/span><\/p>\n<p>[cpp]<br \/>\nstring $str; \/\/ OK<br \/>\nstring str;  \/\/ syntax error<br \/>\n[\/cpp]<\/p>\n<p>\u3053\u3053\u3067\u6ce8\u610f\u3057\u305f\u3044\u306e\u306f<span style=\"color: #3366ff;\">\u5909\u6570\u5ba3\u8a00\u3092\u3059\u308b\u6642\u306b\u5fc5\u305a\u300e$\u300f\u304c\u5fc5\u8981<\/span>\u306b\u306a\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>C\u8a00\u8a9e\u3092\u3084\u3063\u3066\u3044\u308b\u4eba\u304c\u306f\u307e\u308a\u3084\u3059\u3044\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0<strong>\u639f\u305d\u306e3\uff1a<\/strong>\u5ba3\u8a00\u3067\u304d\u308b\u4e00\u822c\u7684\u306a\u578b\u3068\u5b9a\u7fa9\u306e\u4ed5\u65b9<strong>(\u7279\u6b8a\u30eb\u30fc\u30eb\u3042\u308a\uff09<\/strong><\/strong><\/span><\/p>\n<p>[cpp]<br \/>\nint    $num   = 0;<br \/>\nstring $name  = &quot;abc&quot;;<br \/>\narray  $arr[] = [[,]];<br \/>\nvector $vec   = &lt;0,0,0&gt;;<br \/>\n[\/cpp]<\/p>\n<p><span style=\"color: #3366ff;\">array\u578b\u306e\u5b9a\u7fa9\u306f\u3001[]\u3000\u3067\u306f\u306a\u304f\u3000[[,]]\u3000\u306e\u3088\u3046\u306b\u4e8c\u91cd\u306b\u91cd\u306d\u306a\u3044\u3068\u5b9a\u7fa9\u3067\u304d\u307e\u305b\u3093\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0<strong>\u639f\u305d\u306e4\uff1a-\u306e\u53d6\u308a\u6271\u3044\u65b9<\/strong><\/strong><\/span><\/p>\n<p>[cpp]<br \/>\nint $a,$MAX = 10;<\/p>\n<p>\/\/ first pattern<br \/>\n$a&#8211;;     \/\/ NG<br \/>\n$a -= 1;  \/\/ OK<\/p>\n<p>\/\/ second pattern<br \/>\n$a = $MAX -1;  \/\/ NG<br \/>\n$a = $MAX &#8211; 1; \/\/ OK<\/p>\n<p>for($i = 0; $i &lt; $MAX -1; $i++) \/\/ NG<br \/>\n[\/cpp]<\/p>\n<p>fisrt pattern \u3067\u793a\u3057\u305f\u3088\u3046\u306b\u3001C++\u304c\u30d9\u30fc\u30b9\u306a\u306e\u306b<span style=\"color: #ff0000; font-size: 14px;\">\u00a0\u300e&#8212;\u300f \u3068\u3044\u3063\u305f\u6f14\u7b97\u5b50\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u300e++\u300f \u3082\u540c\u69d8\u306b\u4f7f\u3048\u307e\u305b\u3093\u3002<\/span><\/p>\n<p>\u7406\u7531\u306f\u308f\u304b\u308a\u307e\u305b\u3093\uff08\uff3e\uff3e\uff1b<\/p>\n<p>second pattern \u3067\u66f8\u3044\u3066\u3042\u308b\u3053\u3068\u306f\u3001\u3061\u3087\u3063\u3068\u3067\u3082C\u8a00\u8a9e\u306e\u66f8\u304d\u65b9\u3092\u77e5\u3063\u3066\u3044\u308b\u4eba\u304b\u3089\u3057\u305f\u3089\u4e0d\u601d\u8b70\u3067\u305f\u307e\u308a\u307e\u305b\u3093\u3088\u306d\u3047\u3002\u3002\u3002<\/p>\n<p>\u3053\u308c\u306fBlade\u306e\u5f15\u6570\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6307\u5b9a\u306e\u4ed5\u65b9\u304c\u3000-onMod\u3000\u306e\u3088\u3046\u306b\u3000\u300e-\u300f\u3000\u3092\u4f7f\u3046\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>Blade\u306b\u304a\u3044\u3066\u3000<span style=\"color: #3366ff;\">\u300e-\u300f\u3000\u3068\u3044\u3046\u8a18\u53f7\u306f\u3001\u76f4\u5f8c\u306b\u6f14\u7b97\u5b50\u304c\u6765\u306a\u3044\u9650\u308a\u30cf\u30a4\u30d5\u30f3\u3068\u3057\u3066\u512a\u9047\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3057\u3087\u3046<\/span>\u3002<\/p>\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001\u300e-\u300f\u3000\u306e\u5f8c\u308d\u306b\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u306a\u3044\u3068\u30cf\u30a4\u30d5\u30f3\u3068\u3057\u3066\u53d6\u308a\u6271\u3063\u3066\u3057\u307e\u3044\u3001\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><del><span style=\"font-size: 10px; color: #ff0000;\">\u8981\u306f\u4ed5\u69d8\u306b\u3088\u308b\u30d0\u30b0\u3067\u3059\u3088\u306d\u3002<\/span><\/del><\/p>\n<p><span style=\"color: #3366ff;\">for\u6587\u3067\u3088\u304f\u5f15\u3063\u304b\u304b\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0<strong>\u639f\u305d\u306e5\uff1a<\/strong>\u623b\u308a\u5024\u306e\u53d6\u5f97<\/strong><\/span><\/p>\n<p>[cpp]<br \/>\nstring $name = &quot;object_name&quot;;<br \/>\nstring $obj = getModule $name;   \/\/ NG<br \/>\nstring $obj = `getModule $name`; \/\/ OK<br \/>\n[\/cpp]<\/p>\n<p>\u3053\u306e\u623b\u308a\u5024\u306e\u53d6\u5f97\u304c\u4e00\u756a\u306e\u66f2\u8005\u3001\u3068\u3044\u3046\u304b\u3053\u308c\u3092\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u3068\u4f55\u3082\u3067\u304d\u306a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3044\u308f\u3086\u308bget\u95a2\u6570\u304cBlade\u306b\u3082\u5099\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306fgetModule\u3068\u3044\u3046\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u5f15\u6570\u306b\u4e0e\u3048\u3089\u308c\u305f\u6587\u5b57\u5217\u3068\u540c\u3058\u540d\u79f0\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092string\u578b\u3067\u8fd4\u3057\u3066\u304f\u308c\u308b\u95a2\u6570\u3067\u3059\u3002<\/p>\n<p><span style=\"font-size: 14px;\">\u304c\u3001get\u95a2\u6570\u3068\u3044\u3046\u4ee5\u4e0a\u306f\u623b\u308a\u5024\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>C,python\u306e\u30ce\u30ea\u3067\u306f\u623b\u308a\u5024\u304c\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>Blade\u3067\u306f\u3001<span style=\"color: #3366ff;\">get\u95a2\u6570\uff08\u5f15\u6570\u8fbc\u307f\u3067\uff09\u3092\u300e`\u300f\u3067\u56f2\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u30015\u3064\u306e\u639f\u3092\u7406\u89e3\u3067\u304d\u305f\u4eba\u306fBlade\u306e\u77e5\u8b58\u3068\u3057\u3066\u4e00\u822c\u7684\u306a\u3082\u306e\u306f\u624b\u306b\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u5f15\u6570\u306e\u53d6\u308a\u65b9\u3068Help\u306e\u8aad\u307f\u65b9\u3092\u7406\u89e3\u3059\u308c\u3070\u8ab0\u306b\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u5f15\u6570\u306e\u53d6\u308a\u65b9\u306f\u6b21\u56de\u306b\u66f8\u304d\u307e\u3059\u306e\u3067\u304a\u697d\u3057\u307f\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Blade\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u96e3\u3057\u3044\u3068\u611f\u3058\u308b\u4eba\uff01\u958b\u59cb1\u5206\u3067\u4e00\u756a\u57fa\u790e\u3068\u306a\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3051\u307e\u3059\u3088\uff01 \u57fa\u672c\u30eb\u30fc\u30eb\u3055\u3048\u5206\u304b\u308c\u3070\u304b\u306a\u308a\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u306e\u3067\u3001\u305c\u3072\u3053\u306e\u30da\u30fc\u30b8\u306e\u5192\u982d\u3067\u8aac\u660e\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u81ea\u5206\u3067\u5b9f\u8df5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 &#038;nbs &#8230;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[118,236,119,117,120],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-blade","category-hsl","tag-118","tag-blade","tag-for","tag-script","tag-120"],"_links":{"self":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=422"}],"version-history":[{"count":8,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":450,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions\/450"}],"wp:attachment":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}