casting issue

Alexandr Druzhinin drug2004 at bk.ru
Thu Oct 24 10:59:02 PDT 2013


May I cast like:

struct Point
{
	float x, y, z;
	float r, g, b, a;
}

Point[] points;

void foo(float[] float_array) {};

foo(cast(float[]) points); // is it safe?

May be more elegant way do express this exists?

Thanks


More information about the Digitalmars-d-learn mailing list