Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created June 30, 2012 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BitPuffin/3025946 to your computer and use it in GitHub Desktop.
Save BitPuffin/3025946 to your computer and use it in GitHub Desktop.

WHAT

My compile command:

isak@BernardOhlsson ~/torment-circus/reducedt.reduced/build $ dmd -g -debug -property -w -wi -I../../lib/import -L-L../../lib/ -L-lDerelictGL3 -L-lDerelictGLFW3 -L-lDerelictUtil -L-lgl3n-dmd -L-ldl -of../../bin/torment-circus ../torment/component/all.d ../torment/component/component.d ../torment/component/render.d ../torment/scene/scene.d ../torment/math/vector.d ../torment/entity/camera.d

The error:

../torment/scene/scene.d(3): Error: cannot compare const(VariantN!(1LU,RenderComponent)[]) and const(VariantN!(1LU,RenderComponent)[])

The reaction:

WHAT IS THIS MADNESS!!!!=!=!=!=! ;____________;

-- BitPuffin

module torment.component.all;
public import torment.component.component;
module torment.component.component;
import std.variant;
import torment.component.render;
alias Algebraic!RenderComponent Component;
module torment.component.render;
struct RenderComponent {
}
module torment.entity.camera;
import torment.math.vector;
struct Camera {
dvec3 position;
}
module torment.entity.camera;
import torment.math.vector;
struct Camera {
dvec3 position;
}
module torment.entity.camera;
import torment.math.vector;
struct Camera {
dvec3 position;
}
module torment.math.vector;
import gl3n.linalg ;
alias Vector!( double, 3 ) dvec3;
import torment.component.all;
import torment.entity.camera;
struct Scene {
Component [] components;
Camera camera = Camera();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment