"Error: no property `offsetof` for type `char*`"

Tejas notrealemail at gmail.com
Sat Aug 20 03:27:00 UTC 2022


On Friday, 19 August 2022 at 16:36:24 UTC, 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.

I believe you aren't allowed to _append_ to dynamic 
arrays/slices; otherwise you can use them


More information about the Digitalmars-d-learn mailing list