Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-11-23 13:36:49


"Edward Diener" <eddielee_at_[hidden]> writes:

> David Abrahams wrote:
>> "Edward Diener" <eddielee_at_[hidden]> writes:
>>
>>> This may be seen as a nitpick by I think the generalized one-line
>>> explanation for 'ref', as well as the text in the 'ref' introduction
>>> should say "passing reference parameters to generic functions"
>>> rather than "passing references to generic functions".
>>
>> If I was going to add a word there, it would be "arguments," not
>> "parameters."
>
> I have never seen a good explanation of the difference between "parameters"
> or "arguments" when passing data to functions, but "arguments" seems equally
> as good. I just felt that the term "references to generic functions" does
> sound confusing since references must refer to something and the terminology
> makes it sound like it refers to generic functions rather than the types of
> data one passes to generic functions.

Arguments are the actual things passed in. Parameters are the names
for those things on the inside. FWIW, I only learned the distinction
last year.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk