using GLib;

public class Foobar : Object
{
	public Foobar ()
	{
		message ("Creating a Foobar: %p", this);
	}

	~Foobar ()
	{
		message ("Destroying a Foobar: %p", this);
	}
}

public static void main (string[] args)
{
	GLib.List<Foobar> list = new GLib.List<Foobar> ();
	Foobar object = new Foobar ();

	list.prepend (object);
	list.remove (object);
}
