看板 [ Ruby ]
討論串[連結] Superators Add New Operators to Ruby
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者yjc1 (..........)時間18年前 (2007/08/31 23:56), 編輯資訊
1
0
1
內容預覽:
http://jicksta.com/articles/2007/08/29/superators-add-new-operators-to-ruby. 非常有趣的東西.. 網頁上的兩個例子:. class Array. superator "<---" do |operand|. self <<
(還有171個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者godfat (godfat 真常)時間18年前 (2007/09/02 11:50), 編輯資訊
0
0
1
內容預覽:
老實講看到這個我真的覺得很不可思議,因為那乍看之下根本不合 ruby 語法。. 網頁上也有一段 updated 說:. Update: There seems to be some confusion that Superators are a C extension. that modify Ru
(還有1316個字)
首頁
上一頁
1
下一頁
尾頁