----- Original Message -----
From: Herve AGNOUX <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 5:33 PM
Subject: RE: type d'un pointeur null
> Le 25 Apr 2002 Zeljko VELAJA a �crit :
>
>
> Arg bien vu, c'est moi qui suit �pat� !
>
> > En fait, le but de tout cela ? Voir s'il est possible d'�crire une
> > fonction New personnalis�e, comme :
> >
> > String str = null;
> > str = New(str);
> >
>
> M�fi toi l� ce serait New("str") qu'il faudrait mettre a�supositoire.
>
Non, mais mon exemple n'�tait pas tr�s clair : la fonction New(r�f�rence)
ferait sch�matiquement :
public Object New(Object ref)
{
Class k = getReferenceClass(ref);
return k.newInstance();
}
En fait, je dois quand m�me corriger mon exemple :
str = (String) New(str)
Mais bon, tout cela est bien irr�aliste !
>
> --
> Sur le Web, tout de suite.
> Herve AGNOUX - diaam informatique
> http://www.diaam-informatique.com
>