Code: Select all
Structure _Struc
*callback.__Callback
*b._StrucB
EndStructure
Structure _StrucB
EndStructure
Prototype __Callback(value)
Define a._Struc
a\callback(4)
This is just confusing and not coherent with declarations of pointers of unknown type.
I don't know what would be the best. 1/ Not allow pointer assignment to a prototype that is not yet declared 2/ Do like pointers assigned to not yet declared structures, like *b._StrucB in this example, and just allow whatever. I guess I would tend towards option 2, for cohesion.