Closed MechSlayer closed 10 months ago
Thanks for submitting and sorry for the long delay!
This looks good overall, but I'm not sure if I like the rename+alias approach. Another solution could be to use a default sie and implement the new
and from_raw_slices
only for GlobalDescriptorTable<8>
. Then we could add separate methods for constructing tables with other sizes. This way, we should still be backwards compatible.
Alternatively, we could also accept the small breaking change and target the upcoming v0.15
release, which we wanted to publish for some quite some time.
@josephlr @Freax13 What do you think?
This looks good overall, but I'm not sure if I like the rename+alias approach. Another solution could be to use a default sie and implement the
new
andfrom_raw_slices
only forGlobalDescriptorTable<8>
. Then we could add separate methods for constructing tables with other sizes. This way, we should still be backwards compatible.
If this works, I'd prefer this.
It turns out that we already merged a PR to make the GDT const generic in #360. This feature will be available once #446 is merged.
@MechSlayer Thanks for your contribution anyway and sorry for the chaos!
To avoid breaking compatibility, renamed to
BasicGlobalDescriptorTable
, and madeGlobalDescriptorTable
be an alias with 8 entreis.Went with the rename + alias approach due to this issue.