Commande de compilation...
Commande d'exécution...
Fichier source...
upscmp Source=prmdefaut.upl
prmdefaut
Source Composant "Exemple de paramètres par défaut" Version
1.0.0;
Procedure P(A : Caractere="coucou", B : Entier=2, C : Reel=3.14,
D : Booleen=Vrai)
/*********************************************************************/
Debut
Ecran.Ecrire(A);
Ecran.Ecrire(B);
Ecran.Ecrire(C);
Ecran.Ecrire(D);
Ecran.Ecrire("\n");
Fin Procedure
Principal
/*******/
Debut
P("hello", 1, 2.71, Faux);
P("hello", 1, 2.71);
P("hello", 1);
P("hello");
P();
Fin Principal