Suppose I have the following:
type blah is abstract tagged
record
element1 : integer;
end record;
type blah2 is abstract tagged
record
element2 : integer;
end record;
I'm hoping that it's possible that I can do something like this:
type blah3 is abstract new blah1 and blah 2 with null record;
So in theory I can now access blah3.element1 and blah3.element2
Is this possible? and any hints or tips?
UPDATE:
Would it be possible to references the elements of blah3 (containing blah and blah2) using pointers?
I.E. (this is just a rough idea code is terrible...LOL)
type blah3 is new type with
record
element1 : ptr to blah.element1;
element2 : ptr to blah2.element2;
end record
and are then able to be accessed via blah3.element1 for example?