simen.kjaras at gmail.com
Thu Oct 30 13:40:27 PDT 2008
On Thu, 30 Oct 2008 21:02:41 +0100, Simen Kjaeraas
<simen.kjaras at gmail.com> wrote:
> On Thu, 30 Oct 2008 20:57:56 +0100, Simen Kjaeraas
> <simen.kjaras at gmail.com> wrote:
>> A more D-like way of doing it would possibly be:
>> char file;
>> file = read("program.frag");
>> glShaderSource(f, 1, &file.ptr, &file.length);
> Scratch this last part. I'd hoped it worked, but ptr and length aren't
> lvalues, so no can do.
BTW, shouldn't these be reference return values now (dmd v2.020)?
More information about the Digitalmars-d-learn