Io の スクリプト例の BankAccount の欄Ruby でもクラス変数とクラスメソッドを使ってプロトタイプベース・オブジェクト指向スクリプティングを試してみています。っても、Smalltalk のプロトタイプベース的スクリプティングの単なる移植ですが。を受けて。タイトルのものを試してみました。--sumim まっとう(クラスベース)な BankAccount は 戯さん版の こちら ちょっとややこしいことになりますが、クラスをオブジェクトして使わずに、プロトタイプベース的な bankAccount を行なおうとした場合の例は こちら --sumim Smalltalk では、クラスのクラスはメタクラスと呼ばれ、クラスをオブジェクトとして振る舞わせるためのメソッド(クラスメソッド)はメタクラスに定義します(インスタンスにメッセージを送信することで起動するメソッドをクラスに定義するのと
Sure we like our chocolate bunny ears, but around these parts the best easter eggs aren't painted pink and stuffed with jelly beans—they're the undocumented and unexpected fun features hidden deep inside various software apps. While new software Easter eggs don't come around often, there's still a basket full of classics we love. After the jump, get roundup of our favorite software Easter eggs. 10
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く