ENDOF  ( -- )

publication: 8 novembre 2022 / mis à jour 9 novembre 2024

Read this page in english

 

vocabulaire: forth

Marque la fin d'un choix OF .. ENDOF dans la structure de contrôle entre CASE ENDCASE.

Exemple:

: day ( n -- addr len ) 
    CASE 
        0 OF s" Sunday"     ENDOF 
        1 OF s" Monday"     ENDOF 
        2 OF s" Tuesday"    ENDOF 
        3 OF s" Wednesday"  ENDOF 
        4 OF s" Thursday"   ENDOF 
        5 OF s" Friday"     ENDOF 
        6 OF s" Saturday"   ENDOF 
    ENDCASE 
  ; 

Legal: site web personnel sans commerce / personal site without seling