Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プレリュードで行うのと同じ方法で、ポストリュードでターナリーを行うことはできますか? 言い換えれば、プレリュードで何かが評価されたという発言に応じて、異なる呼び出しを開始しますか?
はい。後置式にガード条件を含めることができます。これは、明示的なイベントの発生と永続的な変数の変更の両方で機能します。次のif式は、関数を含む任意の有効な式にすることができます。
if
例:
fired { raise explicit event "foo" if cheese == 5; }