Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What means parameters
Message
De
30/04/2007 09:54:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/04/2007 09:39:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01220881
Message ID:
01221094
Vues:
12
>Actually, not arbitrary. In most languages, that is the main distinction between functions and procedures. VFP is unusual in that it's the call, not the definition, that determines whether you're using a function or a procedure.
>
>Tamar

I know that that is the main distinction, in Pascal for instance. But I was not referring to languages as they are, but as they should be, IMNSHO. In other words, why even make such a distinction, if the only difference is the existence, or not, of a return value.

For example, in a language that makes that distinction, you might write a procedure to do a specific task, and then you have to change it to a function, just because you figure that you need a return value to tell whether the process ran successfully.

In C, and languages derived from it (like Java), they simply don't make such an arbitrary distinction.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform