articles/dicorebol-fr/exit.txt · Dernière modification: 07/05/2005 00:20

EN: rebol.com - rebol.org - rebol.net -
FR: Rebol Documentation Project - forum RebelBB - rebol-france.org - forum codeur -

 

Exit - Détail de la fonction

En résumé :

Sortir de la fonction en ne retournant aucune valeur.

Utilisation :

exit 

Description :

La fonction EXIT est utilisée pour sortir d’une fonction sans retourner une valeur.

    test-str: make function! [str] [
        if not string? str [exit]
        print str
    ]
    test-str 10
    test-str "right"
    right

Note: Utiliser QUIT pour sortir de l’interprète.

Fonctions en relation :

break - Casse une boucle, while, until, repeat, for, etc…

catch - Attrape un throw depuis un bloc et retourne sa valeur.

return - Retourne une valeur depuis une fonction.

Version anglaise officielle :

 
  articles/dicorebol-fr/exit.txt · Dernière modification: 07/05/2005 00:20
 
Fil RSS: Recent changes RSS feed
Valid XHTML 1.0 Valid CSS Powered by PHP Driven by DokuWiki
Hébergement par Spinodo