modules && type inheritance?
MM
MM_member at pathlink.com
Mon Jun 26 14:30:00 PDT 2006
>import the structures module in any module that will need to use them
>
>
><code name="structs.d">
>struct foo{int i;}
></code>
>
><code name="other.d">
>import structs;
>
>void main()
>{
> foo bar;
> bar.i = 3;
> return;
>}
></code>
>
Thx for the reply, and sorry for my ambigious question :)
I import like this:
import std.string;
import std.c.stdio;
import derelict.util.exception;
import derelict.opengl.gl;
import derelict.sdl.sdl;
import derelict.sdl.image;
import derelict.opengl.glu;
import structures;
And get this error:
structures.d(19): identifier 'GLubyte' is not defined
More information about the Digitalmars-d-learn
mailing list