-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix implicitly bound resources to be able to reference MultiVector #18
Changes from all commits
49e19c3
46226c4
f821911
aad94b7
cc1ed1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,7 +136,7 @@ def test_duplicate_multivector_builtin_types_are_not_produced(): | |
@bound_implicitly( b: A0.v0, A0.v1 ) | ||
archive A0 { | ||
v0 : vector< S1 >; | ||
v1 : vector< S1 >; | ||
v1 : multivector< 14, S1 >; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add, not replace. Better - add another test. This one will check for vectors. Another - for multivectors. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is not a test for vector. This tree is named TREE_WITH_ALL_FEATURES |
||
} | ||
|
||
const u32 C = 0xFFFFFFF; | ||
|
@@ -168,11 +168,12 @@ def test_all_flatdata_features_look_as_expected_in_fully_built_tree(): | |
'.ns.A0': Archive, | ||
'.ns.A0.@@ns@C': ConstantReference, | ||
'.ns.A0.b': BoundResource, | ||
'.ns.A0.b.@@ns@A0@v0': VectorReference, | ||
'.ns.A0.b.@@ns@A0@v1': VectorReference, | ||
'.ns.A0.b.@@ns@A0@v0': ResourceReference, | ||
'.ns.A0.b.@@ns@A0@v1': ResourceReference, | ||
'.ns.A0.v0': Vector, | ||
'.ns.A0.v0.@@ns@S1': StructureReference, | ||
'.ns.A0.v1': Vector, | ||
'.ns.A0.v1': Multivector, | ||
'.ns.A0.v1.@@_builtin@multivector@IndexType14': BuiltinStructureReference, | ||
'.ns.A0.v1.@@ns@S1': StructureReference, | ||
'.ns.A1': Archive, | ||
'.ns.A1.@@ns@C': ConstantReference, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not add
ResourceReference
here as it inclduesraw_data
and we surely can't implicitly bind toraw_data
. How about addingSequentialResourceReference
or something like that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about that, and my reasoning was like this:
No strong opinions in that direction, but that seemed like a reasonable thing to allow (we do not benefit from being restrictive, do we?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small note: Right now, we already allow to create explicit references from vectors into raw data.