Technically that should be valid (depending on how stack_t and block_t are defined), but design-wise it would probably be better to just have a member variable for your stack.