[Coco] Expert C programmer wanted

Alex Evans alxevans at concentric.net
Sat Feb 12 00:43:09 EST 2005


On Feb 11, 2005, at 5:00 PM, Roger Taylor wrote:

> At 06:07 PM 2/11/2005, you wrote:
>> On Feb 11, 2005, at 4:02 PM, John R. Hogerhuis wrote:
>>
>>>> Is Pascal like Basic09, in that functions can't return values?  If
>>>> not, then
>>>> you should be able to return a single value (a success/error code 
>>>> for
>>>> example).
>>>
>>> Functions in Pascal must return a value, IIRC.
>>
>> Yes, in Pascal, functions return values, and procedures do not.
>
>
> If you look up the definitions of function and procedure in most 
> programming books, functions return something while procedures (I 
> guess) do not, but I just call'em procedures even if they do something 
> to a pass-by-ref variable.

That is quite true.  What I am referring to are the keywords procedure 
and function in the Pascal language.  Pascal unlike many languages 
defines functions and procedures separately.

-- 
Theodore (Alex) Evans | 2B v ~2B = ?




More information about the Coco mailing list