Ethereum Sol

It took me some time to understand Solidity events. But in the end I think I can explain it.

So the example contract:

contract CallCalc {
address calcReg =0xd794EaF737549c2698e2232c07A9b666934584f8;
event TestEvent(address indexed _from , uint);

function call(uint256 input) returns (uint) {
TestEvent(msg.sender, input);
if (!calcReg.call(bytes4(sha3(“add(uint256)”)), input))
throw;
}
}

After executing method call I can see event in my client