yohhoyの日記

技術的メモをしていきたい日記

2014-04-01から1ヶ月間の記事一覧

(翻訳)N3710 "out of thin air"結果の不在を規定する(後半)

C++

元文書:N3710: Specifying the absence of "out of thin air" results (LWG2265), Hans-J. Boehm氏, 2013/08/29訳出メモ: 自分自身の理解のために日本語訳を行ったC++メモリモデルから"out of thin air"を禁止する提案文書。(後半) 訳文中では"out of th…

(翻訳)N3710 "out of thin air"結果の不在を規定する(前半)

C++

元文書:N3710: Specifying the absence of "out of thin air" results (LWG2265), Hans-J. Boehm氏, 2013/08/29訳出メモ: 自分自身の理解のために日本語訳を行ったC++メモリモデルから "out of thin air" を禁止する提案文書。(前半) 訳文中では "out of…

汎用スコープガード in Java8

Java 8で導入されたラムダ式またはメソッド参照と、Java 7以降のtry-with-resources構文を組合せて、任意のオブジェクトに対するスコープガード処理を記述する方法。 // Java 7以降 class X implements AutoCloseable { // AutoCloseable#closeを実装したク…

java.io.UncheckedIOException例外クラス

Java 8で導入された java.io.UncheckedIOException 例外クラスについてメモ。Stream処理における “Exception Tunneling” のために追加された例外。UncheckedIOException例外クラスは、従来からある検査例外java.io.IOExceptionをラップする目的で、RuntimeEx…