Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What means parameters
Message
From
30/04/2007 09:54:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/04/2007 09:39:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01220881
Message ID:
01221094
Views:
19
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform