On Sunday, 3 May 2015 at 10:56:44 UTC, anonymous wrote:
On Sunday, 3 May 2015 at 02:31:51 UTC, WhatMeWorry wrote:
On Saturday, 2 May 2015 at 22:36:29 UTC, anonymous wrote:
[...]
[1] `Vertex triangle[6]` works, but please don't do that.

Thanks. I assume you would prefer I use triangle[] but with OpenGL calls the dynamic arrays don't work. But maybe that is another question for another time.

No no, Vertex[6] as a type is fine. It's about where you put that "[6]":
Vertex[6] triangle; /* D style - yay */
Vertex triangle[6]; /* C style - boo */

Oh sure, I've changed the code. I wish D had been my first language.

Reply via email to