How can I point an array to existing data in memory while using Better C?
Adam D. Ruppe
destructionator at gmail.com
Sun Jul 8 21:36:36 UTC 2018
On Sunday, 8 July 2018 at 20:27:34 UTC, Stijn Herreman wrote:
> public __gshared partition_entry[128] GPT_entries;
That's a block of memory rather than a pointer, so there's
nothing to reassign there; the .ptr property is read-only there
(and your reassignment is instead copying TO the address, instead
of copying the address).
Instead just use a
partition_entry[] GPT_entries;
and it is a reassignable pointer.
More information about the Digitalmars-d-learn
mailing list