8 Commits
Author SHA1 Message Date
Karoy Lorentey 6385ebbe4d More workarounds for crashes in older 6.2 compiler builds 2025-05-02 18:23:22 -07:00
Karoy Lorentey 93c7cd7e2c Add support for older 6.2 compiler builds 2025-05-02 18:18:29 -07:00
Karoy Lorentey 75837a7717 Flesh out RigidArray 2025-04-24 01:14:09 -07:00
Karoy Lorentey 204531b090 Simplify containers even more 2025-04-18 15:33:14 -07:00
Karoy Lorentey d7768235ef More adjustments 2025-04-17 03:02:33 -07:00
Karoy Lorentey 3d4c79a0a5 Overhaul Container protocols
- Container, MutableContainer: Replace iterator protocols with direct methods that return the next span following a particular index. This is a radical simplification, but it reintroduces some index validation during iteration, and may have undesirable overhead for complex container types.
- RigidArray, DynamicArray, NewArray: Update to reflect changes
- Span: Conform to RandomAccessContainer
- Borrow, Inout: Normalize labels of “owner” parameters. Expose pointers within the package.
- Shared: Normalize read() into borrow()
2025-04-17 00:40:27 -07:00
Alejandro Alonso 35da38de54 Introduce Borrow and use it in Container 2025-04-15 15:57:18 -07:00
Karoy Lorentey 9fc69b4f56 Revive most Container protocols
We cannot express the right subscript requirements yet; make do by requiring hidden members that return (unsafe, escaping) pointers, and provide a default subscript that’s based on unsafe addressors.

This is very unsatisfying, but currently there is no way for a protocol to require subscripts with the right semantics.
2025-04-08 19:25:35 -07:00