From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-10-19 07:09:26
"Daniel Frey" <daniel.frey_at_[hidden]> wrote in message
Thorsten Ottosen wrote:
>> they should not expect that to be the only way to read f(x). Think of
>> several C library functions; think of Pascal procedures. It's beyond me
>> you can state that.
>I just state that I observed this. I don't want people to do this, I
>don't teach them to do this, I just observed that they actually do it.
>Shouldn't I state that? And especially your examples are a common source
>of trouble because C library functions, etc. do modify their parameters.
> In theory people read the docs so it shouldn't be a problem, but in
>practice, well, ... :)
AFAICT, the problem is not that the C library functions modify their
arguments, its rather
the use of pointers and fixed-sized buffers.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk