> For dynamic dispatch to work on an object it should be a reference type as > well.
That is, this will call RootObj's method, not A's and B's (continuing **Krux02**'s example): var values : array[2, RootObj]= [a, b] for p in values: p.foo
> For dynamic dispatch to work on an object it should be a reference type as > well.
That is, this will call RootObj's method, not A's and B's (continuing **Krux02**'s example): var values : array[2, RootObj]= [a, b] for p in values: p.foo