On Saturday, 16 April 2022 at 20:36:12 UTC, Adam Ruppe wrote:
__gshared ubyte[] framebuffer = (cast(ubyte*) 0) [0 .. 16320];

ubyte[] framebuffer() { return (cast(ubyte*) 0) [0 .. 16320]; }

Thank you, Adam.

I'll go with both, as existing examples in other languages use pointer arithmetic.

Now re-implementing a few Lua examples shown on TIC-80's wiki. Will be checking out the [Wasm-compatible D RTL](https://github.com/skoppe/druntime), which I found browsing these forums.

Pierce

Reply via email to