在学习solidity中,有时不明白:
pragma solidity ^0.4.0;
contract Bytes32ToString{
bytes2 name = 0x7a68;
function changeIt() returns(string){
//return string(name);
function bytes32ToString(bytes32 _newName) returns(string){
bytes newName = new bytes(_newName.length);
for(uint i=0; i<name.length; i++){
newName[i] = name[i];
}
return newName;
}
}
什么时候能用 newName,什么时候用 _newName?
望赐教!