Real Simple Question?

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 25 06:56:04 PDT 2016


On Saturday, 22 October 2016 at 21:34:36 UTC, WhatMeWorry wrote:
> On Saturday, 22 October 2016 at 20:51:14 UTC, Jonathan M Davis 
> wrote:
>> [...]
>
> Ok, but now I'm getting these error in my new 
> mypackage/constants.d
>
> ..\common\vertex_data.d(5,15): Error: undefined identifier 
> 'GLfloat'
> ..\common\vertex_data.d(53,12): Error: undefined identifier 
> 'vec3'
>
> Is there a way to just suck in the text from say a .txt file 
> that would not be compiled before inclusion in main.d?

You could format your array in JSON format, and read it in your 
program. That could be another solution.


More information about the Digitalmars-d-learn mailing list