view v compat w   =>   flag
v   input view
w   argument view

Compat returns 1 if the views v and w are compatible, i.e. their columns have the same order and type (including subviews).

Column names need not match for v and w to be considered compatible. To match names as well, use {compare} with the respective meta views.

Examples:
set x [view {A B} def {1 1}]
set y [view {A:I B} def {3 4}]
set z [view {C:I B} def {5 6}]

view $x compat $y
0
view $x compat $z
0
view $y compat $z
1