Re: exceptions

Jean-Pierre Rosen <[email protected]>
Newsgroups gmane.comp.lang.ada.france
Message-ID <[email protected]>
Thomas De Contes a écrit :

>>     procedure erreur (erreur : not null access
>> Ada.Exceptions.Exception_Occurrence; genre : in String; Parent :
>> Gtk.Window.Gtk_Window := null);
>>
>>         when E : others =>
>>             erreur( E'Access , "imprévue" ,Gtk_Window(w));
>>
>> pour pouvoir balader ce pointeur sur mon erreur dans toutes mes
>> procédures, pour pouvoir la traiter dans celle que je veux.
> 
Mais pourquoi un pointeur? Pourquoi ne pas passer l'occurrence
directement? Il n'y a alors plus aucun problème de 'Access, niveau
d'accessibilité, etc.
-- 
---------------------------------------------------------
           J-P. Rosen ([email protected])
Visit Adalog's web site at http://www.adalog.fr

_______________________________________________
Site WWW de l'association Ada-France: http://www.ada-france.org/
[email protected]
http://www.ada-france.org/mailman/listinfo/ada-france
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.