Personal tools

Atribuirea are valoare

From HaskellWiki

Revision as of 05:50, 11 February 2011 by Ha$kell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


In unele versiuni mai vechi de Rodin atribuirea are valoare: valoarea atribuita e si valoarea ei

{ fie y =2;
  fie x=100;
  cat timp (x>10)
    fie x=x-(fie y = 1);
  scrie x;
  scrie y;
}


Atribuirea fie y=1 are chiar valoarea 1. Deci x este actualizat scazandu-i o unitate.