Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding optional parameters to existing sub
Message
 
À
04/05/2007 18:43:31
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01222670
Message ID:
01222841
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
Hi Bruce,

> Just would like to know why?

When you call a method, the calling method puts all parameters on the stack where the called functions retrieves them. In other words, the method doesn't determine parameters by name but by position on the stack. In addition, there's no parameter that specifies how many values have been passed. If the CLR would allow your new code to run, your method would read more data from the stack than was made available end probably end up deleting the return address from the stack. As a result, your application would crash.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform