var p = null;
function makeSingleton() {
	if (p == null) {
		p = new function() {
			this.constante = new Number(123); // Constante
			this.val = new Number(0);
			this.chaine = new String();
			this.appendString =  function(val) {
				p.chaine += val;
			}
		}		
	}
	else {
		p.val++;
	}

	return p;
}
