virtual method is not much convenient:
virtual at eax
structure1 STRUCTURE
end virtual
further relocation is not possible as label already defined:
virtual at ebx
structure1 STRUCTURE
end virtual
of course we can find out a new name but that is a bit stupid:
virtual at eax
structure1a STRUCTURE
end virtual
there are also arrays of structures where base is not fixed and we need a 0-offset of a field, eg:
struct STRUCTURE
f1 db ?
f2 db ?
ends
structure1 STRUCTURE
mov eax,[eax+structure1.f1-structure1]
not the best decision, so that relative offset constants needed ie the macro from a respective *.inc file must be fixed
mov eax,[eax+structure1.rel.f1] ;etc naming