pragma solidity ^0.4.6;
contract Demo {
uint a;
function set(uint b) returns (uint) {
a = b;
return a * b;
}
function get() constant returns (uint) {
return a;
}
}
Q: The function "get()" is a constant function, it is not changed the contract status, it just return the "a" value, when the function "set(uint b)" called, it will return a transaction hash, and wait to the mined, so then, how to capture the return value "a * b" ?
Many blogs and answer say it can't captured, but use event can do this, But a online compiler can do this, https://ethereum.github.io/browser-solidity , and how the browser-solidity did it ?