kernel#require_relative Ruby tries to load the library named string relative to the requiring file's path. 就是说当前运行文件的目录下面找这个要加载的文件. 如:/Users/个人/Ruby元编程/object_model/hook.rb: #require(name) -> true/false 用于加载标准库,就是和Ruby一起安装的库. from /Users/个人/.rvm/rubi…
c++的操蛋属性:自己为一档,空一档,其他随意. UB_stack a; UB_stack b = a; // copy auto c = a; auto d {a}; // (or auto d = {a}), deduced type is std::initializer_list 这是一个抓狂的问题,详见:http://scottmeyers.blogspot.com.au/2014/03/if-braced-initializers-have-no-type-why.html 今日一乐…