view nocompile/template_struct_02.d @ 2:de27ca625bf7

extended abstract/alias and template tests
author thomask
date Sun, 26 Sep 2004 12:07:39 +0000
parents
children
line wrap: on
line source

// @author@	<hellcatv@hotmail.com>
// @date@	2004-05-06

struct vec(int size){
	float data[size];
	vec!(1) first(){
		vec!(1) t;
		t.data[0]=data[0];
		return t;
	}
}