Comment detail

メソッドのフック (Nested Flatten)

This comment is reply for 6052 syat: あ、ほんとだ。 左からの評価が保証され...(メソッドのフック). Go to thread root.

#6044(Cの関数フックもどき)について補足。
関数の戻り値を返せるようにするには、グローバル変数を使うのが簡単そうです。
または、afterで関数の戻り値を参照できたほうが便利なので、
( before(), after(func()) )
とするとよいかも。afterは引数をそのまま返します。

Index

Feed

Other

Link

Pathtraq

loading...