How can I point an array to existing data in memory while using Better C?
Stijn Herreman
stijn.herreman at outlook.be
Sun Jul 8 21:18:03 UTC 2018
On Sunday, 8 July 2018 at 21:10:50 UTC, ag0aep6g wrote:
> On 07/08/2018 10:27 PM, Stijn Herreman wrote:
>> https://forum.dlang.org/thread/ddckhvcxlyuvuiyazpqy@forum.dlang.org is similar to what I want to do, but the code by Adam cannot be used when using Better C (I assume slicing isn't supported).
>
> Slicing a pointer works fine for me with -betterC (DMD
> 2.081.0). Why do you think it doesn't work?
Oh it does, thank you for the example. I don't recall the code I
had, but the compiler gave an error about TypeInfo (or a similar
object) not being supported.
More information about the Digitalmars-d-learn
mailing list