nouveautés Ada 2005 (ou 2012 ? )

Thomas De Contes <[email protected]>
Newsgroups gmane.comp.lang.ada.france
Message-ID <[email protected]>
Bonjour :-)


je viens de trouver
         Cut_Start := (if Cut_Start = 0 then Path'First else Cut_Start + 1);
(a-direct.adb, l 1080)

Je ne connaissais pas, donc je suppose que c'est une nouveauté :-)
Où peut on trouver les règles exactes ?
De quoi peut on se servir dans des expression, parmi ce qui était jusqu'à présent réservé à des instructions, comme ça ? (case ? for ?)


je vais pouvoir jeter ma vieille fonction si :-)

	generic
		type Object (<>) is private;
	function si (condition : boolean; siVrai, siFaux : Object) return Object;

	function si (condition : boolean; siVrai, siFaux : Object) return Object is
	begin
		if condition then
			return siVrai;
		else
			return siFaux;
		end if;
	end si;


-- 
Téléassistance / Télémaintenance
http://www.portparallele.com/ThomasDECONTES/

_______________________________________________
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.