"Error: no property `offsetof` for type `char*`"
Steven Schveighoffer
schveiguy at gmail.com
Fri Aug 19 16:53:09 UTC 2022
On 8/19/22 12:36 PM, MyNameHere wrote:
> On Friday, 19 August 2022 at 14:30:50 UTC, kinke wrote:
>> Oh and `DevicePath()` is a convenience member returning a pointer to
>> the 'dynamic array' (as the array decays to a pointer in C too), so no
>> need to fiddle with `.offsetof` and computing the pointer manually.
>
> I am using ```-BetterC```, so that path is closed to me, I think.
dynamic arrays are really slices, and they are allowed in betterC.
-Steve
More information about the Digitalmars-d-learn
mailing list