エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How Dart classes work as JS - Islands in the byte stream (legacy)
Dartのクラス機構はどんなものか調べた記録。DartはCoffeeScriptよりも遥かに複雑だが、継承メカニズム... Dartのクラス機構はどんなものか調べた記録。DartはCoffeeScriptよりも遥かに複雑だが、継承メカニズムはほぼ同一だった。 DartからJSにコンパイルされた結果は長いので肝心なところだけ。 function $inherits(child, parent) { if (child.prototype.__proto__) { child.prototype.__proto__ = parent.prototype; } else { function tmp() {}; tmp.prototype = parent.prototype; child.prototype = new tmp(); child.prototype.constructor = child; } } __proto__はECMA262標準ではないので無視するとしてelseブロックをみると、中間代理クラ
2012/03/10 リンク