Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursion
Message
De
26/11/1998 20:05:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00160932
Message ID:
00161878
Vues:
21
>Of course C++ doesn't have that, it will be perfectly happy to write over the bios if it runs out of memory.

This is not really true... If it will write or not over the bios (or any memory that it's not owned by the app) depends on the OS and C++ implementation.

Today, no serious C++ compiler will generate code that does that. As for recursion, in C++, the limit is set by the stack memory (and, of course, the heap, if the function allocates memory internally). In VC++, both will generate an exception and it will not write where not allowed.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform