view run/delegate_04.d @ 374:f87ba6507260

added missing meta-data
author thomask
date Thu, 31 Mar 2005 09:01:33 +0000
parents 2c9eb7937bb2
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

module dstress.run.delegate_04;

struct MyStruct{
	int test(){
		return 3;
	}
}

int main(){
	int delegate() dl;
	
	MyStruct s;
	dl = &s.test;
	assert(dl()==3);

	return 0;
}