Similar to this question How to get access to the storage array through the solidity assembler?
But instead of accessing a storage variable, I want to create a new storage variable via assembly. That means instead of declaring a variable, I use a function to generate the variable.
Instead of:
contract MetaCoin{
uint A;
}
Do this:
contract MetaCoin{
function createVariableA(){
//assembler code here
}
}
After generating the variable, other functions can somehow use it like a normal declared variable.
Is this possible?