• [^] # Re: Le but ?

    Posté par (site web personnel) . En réponse au journal Un print(1 + "3a"), ça nous inspire comment ?. Évalué à 4.

    D'ailleurs en Ada cela ne compile pas ...

    with Ada.Text_IO; 
    procedure bad_add is
    begin
     Ada.Text_IO.Put_Line( 1 + "3a" );
    end bad_add;
    `̀̀``
    `gcc-4.6 -c bad_add.adb
    bad_add.adb:5:29: expected type universal integer
    bad_add.adb:5:29: found a string type
    gnatmake: "bad_add.adb" compilation error
    `