Re: Structs
- Posted by petelomax Oct 18, 2019
- 3563 views
Not really. I put it on the back burner hoping for some sudden inspiration that never happened. I think I needed a kick.
I still can't decide on the right storage approach.
Phix sequences are obviously appealing and fit in best with existing debugging mechanisms (ie ex.err).
However there are other obvious benefits to C structs (raw address) and reference structs (opaque index), which may make debugging somewhat harder.
In the first instance I need to whip up a struct.e (probably with a somewhat ugly/clunky interface) that delivers the needed functionality.
I had assumed that would be pretty trivial, but indecision has got in the way.