Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Manuel d'utilisateur Page 96

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 97
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 95
96
Appendix E Limitation of For and While Loops
To prevent infinite loops in improperly written script code there is a maximum limitation of 40,000 iterations in the
case of “For” and “While” loops.
Use the following nested loop get around this limitation:
for( i = 0; i <= 40000; i++ )
{
for( j = 0; j <= 40000; j++ )
{
k = i * 40000 + j; # k will iterate from 0 to 1600040000 thus overriding 40000
limitation
... # Do something with k
}
Vue de la page 95
1 2 ... 91 92 93 94 95 96 97

Commentaires sur ces manuels

Pas de commentaire