#define SIZE_HEAP 0x4000
#define NUMBLOCK 16
#include "class.h--"

struct info {
	info(word str);
	~info();
	char buf[80];
};

info::info(word str)
{
	IF(this){
		strcpy(#buf,str);
		WRITESTR("Create class in ");
		WRITESTR(#buf);
		WRITELN();
	}
	return this;
}

info::~info()
{
	WRITESTR("Destroy class in ");
	WRITESTR(#buf);
	WRITELN();
}

info ss;

int CheckClass()
{
info s1;
word w1;
	w1=new info("allocate memory");
	s1.info("stack memory");
	ss.info("programm memory");
	delete ss;
	delete w1 info;
}

void main()
{
	CheckClass();
}
