Throw[value]評価を中止し,この関数に対して適用された最も近くにあるCatchの値として value を返す.
Throw[value, tag]Catch[expr, form]だけによりキャッチできる.form は tag にマッチしたパターンである.
Throwが評価されると直ちに囲み込んでいるCatchに退避する:
「例外処理を実行する」ことができる関数を定義する:
Catchの結果はThrowが投げ出した(実行した)ものである:
Throwを使って基準を満たしたときにループから退避する:
Catch Return Goto Interrupt Abort Sow NestWhile For While
400+ new features, including the new Wolfram Predictive Interface, social network analysis, enterprise CDF deployment, and more »