Download resp.notice

Back to the list

Display this manual page in
$$$$ RESP     NOTICE  CHAT      11/09/12    21:17:58     7124           
                                             DATE     11/09/12
                                             
  Operateur RESPRO                         Voir aussi : 
    ----------------   
    RESPRO  OBJET1 OBJET2  ..... ;


    Description :
    _____________

    The RESPRO operator makes it possible to give the results
  OBJET1 OBJET2 ... within a procedure.

    Note :
    ________

    There may be several orders RESPRO in one procedure.

    These results can only be read when calling on FINPRO.
 
    The first result given by RESP will be allocated to the
 first name before the sign =, etc...



    Example :
    _________

    Procedure for creating the first N whole powers of a number :



             DEBP PUISSANC ;
             ARGU X*FLOTTANT N*ENTIER  ;
             SI ( N <EG 0) ; QUITTER PUISSANC; FINSI;
             B = 1.;
             RESPRO  B;
             NN = N - 1 ;
             SI ( NN EGA 0) ; QUITTER PUISSANC; FINSI;
             REPETER PU NN;
             B = B * X ;
             RESPRO B;
             FIN    PU;
             FINPROC;

             A B C  = PUISSANC 4 3;
             AA = PUISSANC 2 20 PROG;

   In our example, A B C equal respectively 1 4 16 and AA is a
 LISTREEL object containing the first 20 powers of 2 (1 2 4 8...).

 

© Cast3M 2003 - All rights reserved.
Disclaimer